Skip to content

Commit

Permalink
fix: error handler tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saisilinus committed Apr 5, 2022
1 parent 1c16df1 commit 50ed723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/errors/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ export const errorHandler = (err: ApiError, _req: Request, res: Response, _next:
logger.error(err);
}

res.status(statusCode).json(response);
res.status(statusCode).send(response);
};

0 comments on commit 50ed723

Please sign in to comment.