Change itemTransform function to use Item.Price directly
This commit is contained in:
parent
9cd9b20163
commit
3ce1c5c2d0
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user