Skip to content

Commit

Permalink
Update json-api-express.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
joelalejandro authored Dec 12, 2023
1 parent 555aac9 commit f4f9e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/json-api-express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function jsonApiExpress(
try {
await authenticate(appInstance, req);
} catch (error) {
res.status(Number(error.status)).json(convertErrorToHttpResponse(error));
res.status(+error.status).json(convertErrorToHttpResponse(error));
return next();
}

Expand Down

0 comments on commit f4f9e48

Please sign in to comment.