fix news to bytes

This commit is contained in:
trunglt251292 2022-09-20 14:46:29 +07:00
parent 4452be1474
commit 952c09ccba
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ func GetNews() News {
// GetProductNoticesByInventory ...
func (n News) GetProductNoticesByInventory(p model.GetProductNoticesByInventoryRequest) (*model.GetProductNoticesByInventoryResponse, error) {
msg, err := natsio.GetServer().Request(subject.News.GetProductNoticesByInventory, bsonToBytes(p))
msg, err := natsio.GetServer().Request(subject.News.GetProductNoticesByInventory, toBytes(p))
if err != nil {
return nil, err
}