From b9e20a0f8b10b1a5e29c0a8d7a063c6f9a03ee68 Mon Sep 17 00:00:00 2001 From: Jamie Vangeysel <32323785+JamieVangeysel@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:31:50 +0100 Subject: [PATCH] fix Unexpected lexical declaration --- src/controllers/upload.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/upload.controller.ts b/src/controllers/upload.controller.ts index db3489b..0ef446b 100644 --- a/src/controllers/upload.controller.ts +++ b/src/controllers/upload.controller.ts @@ -168,7 +168,7 @@ export default async function (fastify: FastifyInstance) { results.push(await repo.create(undefined, document, request.jwt.sub)) } else if (request.query.id) { switch (request.query.mode) { - case 'update': + case 'update': { const result = await repo.create(request.query.id, document, request.jwt.sub, 'Update') if (result.result.length > 0) { const _ouuid = result.result[0].guid.toLocaleLowerCase() @@ -178,7 +178,7 @@ export default async function (fastify: FastifyInstance) { } results.push(result) break - + } case 'version': results.push(await repo.create(request.query.id, document, request.jwt.sub, 'Version')) break