Fixed location editor
Deploy / deploy-prod (push) Skipped
Deploy / deploy-dev (push) Successful in 2m56s

This commit is contained in:
blaisadmin committed 2026-10-07 20:08:39 -04:00
1 parent 4869756957
commit ac4b50293e
3 files changed
+38 -22

No files matched your search

+2
View File
@@ -3745,6 +3745,7 @@ app.post('/api/birds', requireAuth, requireWriteAccess, requireWorkspaceRole(['o
toWorkspaceId: req.auth!.workspace.id,
locationLabel: bird!.location_label,
locationDetails: bird!.location_details,
eventDate: emptyToNull(parsed.data.locationDate),
createdByUserId: req.auth!.user.id,
});
res.status(201).json({ bird: normalizeBird(bird!) });
@@ -4124,6 +4125,7 @@ app.put('/api/birds/:birdId', requireAuth, requireWriteAccess, requireWorkspaceR
toWorkspaceId: req.auth!.workspace.id,
locationLabel: bird.location_label,
locationDetails: bird.location_details,
eventDate: emptyToNull(parsed.data.locationDate),
createdByUserId: req.auth!.user.id,
});
}