Skip to content

Commit

Permalink
fix: rename schema name
Browse files Browse the repository at this point in the history
This isn't an observation we added; it's an observation we returned.
  • Loading branch information
EvanHahn committed Nov 4, 2024
1 parent 7d4a6be commit 4f0b0c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default async function routes(
}),
response: {
200: Type.Object({
data: Type.Array(schemas.observationToAdd),
data: Type.Array(schemas.observationResult),
}),
403: { $ref: 'HttpError' },
404: { $ref: 'HttpError' },
Expand Down
2 changes: 1 addition & 1 deletion src/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const projectToAdd = Type.Object({
}),
})

export const observationToAdd = Type.Object({
export const observationResult = Type.Object({
docId: Type.String(),
createdAt: dateTimeString,
updatedAt: dateTimeString,
Expand Down

0 comments on commit 4f0b0c6

Please sign in to comment.