trimmed weight edit
This commit is contained in:
1 parent
f65a4bed24
commit
53b7d34520
3 files changed
+56
-20
No files matched your search
@@ -925,6 +925,7 @@ export const updateWeightForBird = async (
|
||||
notes = $5
|
||||
WHERE id = $1
|
||||
AND bird_id = $2
|
||||
AND recorded_on >= CURRENT_DATE - (2 * INTERVAL '1 day')
|
||||
RETURNING id, bird_id, weight_grams, recorded_on::text, notes`,
|
||||
[weightId, birdId, weightGrams, recordedOn, notes],
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user