mirror of
https://gitlab.com/wheres-the-tp/server.git
synced 2026-01-25 04:24:56 -06:00
fix last update timestamp on newly created items
This commit is contained in:
parent
90c6114166
commit
8b700c9765
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ ORDER BY quantity DESC
|
|||
|
||||
-- :name insert-quantity-query
|
||||
INSERT INTO quantities (food_item_id, quantity, date)
|
||||
VALUES (:v:food_item_id::uuid, :v:quantity::quantity, current_timestamp)
|
||||
VALUES (:v:food_item_id::uuid, :v:quantity::quantity, now())
|
||||
RETURNING *
|
||||
|
||||
-- :name select-latest-quantity-query
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue