mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-13 11:36:04 +00:00
verify email workflow working
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user