share links

This commit is contained in:
Milo Schwartz 2024-12-20 22:24:44 -05:00
parent 72dc02ff2e
commit 845d65ad33
No known key found for this signature in database
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,