Skip to content

Commit

Permalink
Revert "Take s3key from body"
Browse files Browse the repository at this point in the history
This reverts commit 4645c99.
  • Loading branch information
tukiains committed Nov 22, 2024
1 parent 5a1aaa8 commit b63380b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/routes/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"] });
Expand Down

0 comments on commit b63380b

Please sign in to comment.