Skip to content

Commit

Permalink
fix Unexpected lexical declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieVangeysel committed Dec 9, 2024
1 parent 40f5e9a commit b9e20a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/upload.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit b9e20a0

Please sign in to comment.