From 63cef45284e3ea3e9caa4600d56809ce25b076c7 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 29 Nov 2022 22:16:46 -0500 Subject: [PATCH] fix: documents endpoints allow slug as id parameter --- server/routes/api/documents/schema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routes/api/documents/schema.ts b/server/routes/api/documents/schema.ts index fc124a8de..98d775f59 100644 --- a/server/routes/api/documents/schema.ts +++ b/server/routes/api/documents/schema.ts @@ -33,8 +33,8 @@ const SearchQuerySchema = z.object({ }); const BaseIdSchema = z.object({ - /** Id of the entity */ - id: z.string().uuid(), + /** Id of the document to be updated */ + id: z.string(), }); export const DocumentsListSchema = DocumentsSortParamsSchema.extend({