cart and checkout
This commit is contained in:
@@ -25,10 +25,9 @@ func (s *StockHandler) HandleItem(item types.Item, wg *sync.WaitGroup) {
|
||||
if !ok {
|
||||
centralStock = 0
|
||||
}
|
||||
|
||||
sku, ok := item.GetStringFieldValue("sku")
|
||||
if !ok {
|
||||
log.Printf("unable to parse central stock for item %s: %v", sku)
|
||||
log.Printf("unable to parse central stock for item: sku missing")
|
||||
centralStock = 0
|
||||
} else {
|
||||
s.svc.UpdateInventory(ctx, pipe, inventory.SKU(sku), s.MainStockLocationID, int64(centralStock))
|
||||
|
||||
Reference in New Issue
Block a user