Skip to content

Commit

Permalink
Merge pull request #370 from nelson6e65/patch-2
Browse files Browse the repository at this point in the history
fix(json-api-express): make sure response status is a number
  • Loading branch information
joelalejandro authored Dec 12, 2023
2 parents b890ea8 + f4f9e48 commit d741f0f
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(error.status).json(convertErrorToHttpResponse(error));
res.status(+error.status).json(convertErrorToHttpResponse(error));
return next();
}

Expand Down

0 comments on commit d741f0f

Please sign in to comment.