Skip to content

Commit

Permalink
Fix npe with OZON
Browse files Browse the repository at this point in the history
  • Loading branch information
ozonophore committed Oct 14, 2023
1 parent 86ebda4 commit 6c7b396
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/app/internal/mapper/fbo.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func MapFBOToOrder(fbo *api.FBO, transactionId int64, source string, ownerCode s
totalDiscountPercent = finData[product.Sku].TotalDiscountPercent
totalDiscountValue = finData[product.Sku].TotalDiscountValue
}
saleSate := fbo.ShipmentDate.ToTime()

orders[i] = model.Order{
TransactionID: transactionId,
Expand Down Expand Up @@ -89,7 +90,7 @@ func MapFBOToOrder(fbo *api.FBO, transactionId int64, source string, ownerCode s
BarcodeId: barcodeId,
ItemId: itemId,
Message: message,
SaleDate: fbo.ShipmentDate.ToTime(),
SaleDate: &saleSate,
}
}
return &orders, nil
Expand Down

0 comments on commit 6c7b396

Please sign in to comment.