mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-20 10:44:34 +02:00
verify email workflow working
This commit is contained in:
parent
e176295593
commit
76eeb335a3
23 changed files with 16363 additions and 15802 deletions
|
@ -11,6 +11,9 @@ export const errorHandlerMiddleware: ErrorRequestHandler = (
|
|||
next: NextFunction,
|
||||
) => {
|
||||
const statusCode = error.statusCode || HttpCode.INTERNAL_SERVER_ERROR;
|
||||
if (environment.ENVIRONMENT !== "prod") {
|
||||
logger.error(error);
|
||||
}
|
||||
res?.status(statusCode).send({
|
||||
data: null,
|
||||
success: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue