trimmed weight edit
This commit is contained in:
1 parent
454adc6f5e
commit
1e98d55cb5
3 files changed
+56
-20
No files matched your search
@@ -909,6 +909,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