From 3ce1c5c2d0f88c3426a49f2954d4aa3a0fa2075d Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 20 Nov 2024 18:19:43 +0200 Subject: [PATCH] Change itemTransform function to use Item.Price directly --- handlers/item.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/item.go b/handlers/item.go index 90e412f..7eeefac 100644 --- a/handlers/item.go +++ b/handlers/item.go @@ -21,7 +21,7 @@ var itemTransform func(inp *db.Item) types.DbItem = func(inp *db.Item) types.DbI Proteins: inp.Proteins, Carbs: inp.Carbs, Fats: inp.Fats, - Price: inp.CurrentPrice.Price, + Price: inp.Price, } }