diff --git a/src/routes.js b/src/routes.js index 65e34fc..3f6986f 100644 --- a/src/routes.js +++ b/src/routes.js @@ -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' }, diff --git a/src/schemas.js b/src/schemas.js index 0dcf9ca..fa192bd 100644 --- a/src/schemas.js +++ b/src/schemas.js @@ -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,