Change itemTransform function to use Item.Price directly

This commit is contained in:
qowevisa 2024-11-20 18:19:43 +02:00
parent 9cd9b20163
commit 3ce1c5c2d0

View File

@ -21,7 +21,7 @@ var itemTransform func(inp *db.Item) types.DbItem = func(inp *db.Item) types.DbI
Proteins: inp.Proteins, Proteins: inp.Proteins,
Carbs: inp.Carbs, Carbs: inp.Carbs,
Fats: inp.Fats, Fats: inp.Fats,
Price: inp.CurrentPrice.Price, Price: inp.Price,
} }
} }