From b63380bf018fcd64bab763255dcc2c6cc2c80781 Mon Sep 17 00:00:00 2001 From: Simo Tukiainen Date: Fri, 22 Nov 2024 15:13:37 +0200 Subject: [PATCH] Revert "Take s3key from body" This reverts commit 4645c993a46944d8fc4c3e6ce989e09bedf8aa74. --- backend/src/routes/file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes/file.ts b/backend/src/routes/file.ts index b9cdcc7a1..532ecfafb 100644 --- a/backend/src/routes/file.ts +++ b/backend/src/routes/file.ts @@ -161,7 +161,7 @@ export class FileRoutes { putFile: RequestHandler = async (req, res, next) => { const file = req.body; - + file.s3key = (req.params.s3key as unknown as string[]).join("/"); file.updatedAt = new Date(); if (!isFile(file)) return next({ status: 422, errors: ["Request body is missing fields or has invalid values in them"] });