Skip to content

Commit

Permalink
fix: add missing observation versionId
Browse files Browse the repository at this point in the history
  • Loading branch information
luandro committed Feb 24, 2025
1 parent 21c1adf commit b29800f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/observations.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default async function observationRoutes(

return {
data: {
versionId: observation.versionId,
docId: observation.docId,
createdAt: observation.createdAt,
updatedAt: observation.updatedAt,
Expand Down Expand Up @@ -118,6 +119,7 @@ export default async function observationRoutes(
return {
data: (await project.observation.getMany({ includeDeleted: true })).map(
(obs) => ({
versionId: obs.versionId,
docId: obs.docId,
createdAt: obs.createdAt,
updatedAt: obs.updatedAt,
Expand Down

0 comments on commit b29800f

Please sign in to comment.