Skip to content

Commit

Permalink
Check if there is a sponsored product
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Sep 24, 2024
1 parent 4b4f1ae commit 3b12bfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion services/external/weni/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ func (s *service) Call(session flows.Session, params assets.MsgCatalogParam, log
}
productRetailerIDMap = make(map[string]struct{})

allProductsSponsored[0].ProductRetailerIDs = append(allProductsSponsored[0].ProductRetailerIDs, searchResultSponsored+"#"+sellerID)
if len(searchResultSponsored) > 0 {
allProductsSponsored[0].ProductRetailerIDs = append(allProductsSponsored[0].ProductRetailerIDs, searchResultSponsored+"#"+sellerID)
}

}

callResult.ProductRetailerIDS = productEntries
Expand Down

0 comments on commit 3b12bfa

Please sign in to comment.