1
0
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:
2026-10-29 11:54:16 +00:00
parent 20a97bff51
commit ab21755051
+1 -1
View File
@@ -190,7 +190,7 @@ func (c postgresController) PriceOrderProducts(ctx context.Context, orderId stri
return errors.WrapServiceError(errors.ErrCodeExtService, "failed to fetch price quotes", err)
}
var productPrices map[string]float32
productPrices := map[string]float32{}
for rows.Next() {
var productId string
var productPrice float32