Skip to content

Commit

Permalink
Change the name of function
Browse files Browse the repository at this point in the history
  • Loading branch information
0417taehyun committed Dec 20, 2024
1 parent b4702e2 commit 0b71d03
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 openAPIValidationMiddleware = 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, openAPIValidationMiddleware);
}

get(
Expand Down

0 comments on commit 0b71d03

Please sign in to comment.