Skip to content

Commit

Permalink
overload adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
jrCleber committed Oct 24, 2024
1 parent eb6c42d commit 6f0a79f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/integrations/minio/s3.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function S3Router(s3Service: S3Service, ...guards: RequestHandler[]) {
execute: (_, data) => s3Service.getMedia(data),
});

return res.status(HttpStatus.OK).json(response);
res.status(HttpStatus.OK).json(response);
})
.get(routerPath('media/url/:id'), ...guards, async (req, res) => {
req.body = req.params;
Expand All @@ -58,7 +58,7 @@ export function S3Router(s3Service: S3Service, ...guards: RequestHandler[]) {
execute: (_, data) => s3Service.getMediaUrl(data.id as string, data.expiry),
});

return res.status(HttpStatus.OK).json(response);
res.status(HttpStatus.OK).json(response);
});

return router;
Expand Down
2 changes: 1 addition & 1 deletion src/middle/error.middle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class ErrorMiddle {

public static appError(err: Error, _: Request, res: Response, __: NextFunction) {
if (err) {
return res.status(err['status'] || 500).json(err);
res.status(err['status'] || 500).json(err);
}
}
}

0 comments on commit 6f0a79f

Please sign in to comment.