share links

This commit is contained in:
Milo Schwartz 2024-12-20 22:24:44 -05:00
parent 084f65f657
commit e9c114ed70
31 changed files with 1281 additions and 212 deletions

View file

@ -11,9 +11,9 @@ export const errorHandlerMiddleware: ErrorRequestHandler = (
next: NextFunction
) => {
const statusCode = error.statusCode || HttpCode.INTERNAL_SERVER_ERROR;
if (process.env.ENVIRONMENT !== "prod") {
logger.error(error);
}
// if (process.env.ENVIRONMENT !== "prod") {
// logger.error(error);
// }
res?.status(statusCode).send({
data: null,
success: false,