From 4f0b0c644de07ce132a2490ba1ecb2c7cd20c720 Mon Sep 17 00:00:00 2001 From: Evan Hahn Date: Mon, 4 Nov 2024 17:54:39 +0000 Subject: [PATCH] fix: rename schema name This isn't an observation we added; it's an observation we returned. --- src/routes.js | 2 +- src/schemas.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,