Skip to content

Commit

Permalink
Change to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
0417taehyun committed Dec 20, 2024
1 parent 7b1c963 commit b4702e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/routes/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const checkPrivateProjectPermissions = () => async (req, res, next) => {
return res.status(404).end();
};

const checkOpenAPIValidationError = () => async (err, req, res, next) => {
const checkOpenAPIValidationError = async (err, req, res, next) => {
if (err?.status && err.validationErrors) {
const apiError = fromOpenApiValidationErrors(req, err.validationErrors);

Expand Down Expand Up @@ -126,7 +126,7 @@ export default class Controller {
this.useRouteErrorHandler(options.handler.bind(this)),
);

this.app.use(options.path, checkOpenAPIValidationError());
this.app.use(options.path, checkOpenAPIValidationError);
}

get(
Expand Down

0 comments on commit b4702e2

Please sign in to comment.