From ab21755051fc5d7b724737dd4b6ed4dc50861a32 Mon Sep 17 00:00:00 2001 From: Declan Teevan Date: Thu, 29 Oct 2026 11:54:16 +0000 Subject: [PATCH] fix(product): initialization mechanisms for `productPrices` in `PriceOrderProducts` Signed-off-by: Declan Teevan --- internal/svc/product/controller/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/svc/product/controller/postgres.go b/internal/svc/product/controller/postgres.go index 5e18a35..9b54001 100644 --- a/internal/svc/product/controller/postgres.go +++ b/internal/svc/product/controller/postgres.go @@ -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