mirror of
https://github.com/hexolan/stocklet.git
synced 2026-12-01 03:09:10 +00:00
fix(product): initialization mechanisms for productPrices in
`PriceOrderProducts` Signed-off-by: Declan Teevan <dt@hexolan.com>
This commit is contained in:
@@ -190,7 +190,7 @@ func (c postgresController) PriceOrderProducts(ctx context.Context, orderId stri
|
|||||||
return errors.WrapServiceError(errors.ErrCodeExtService, "failed to fetch price quotes", err)
|
return errors.WrapServiceError(errors.ErrCodeExtService, "failed to fetch price quotes", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var productPrices map[string]float32
|
productPrices := map[string]float32{}
|
||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
var productId string
|
var productId string
|
||||||
var productPrice float32
|
var productPrice float32
|
||||||
|
|||||||
Reference in New Issue
Block a user