Resource update working

This commit is contained in:
Owen Schwartz 2024-10-19 17:41:20 -04:00
parent 5d1db5413b
commit 94da55450e
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
5 changed files with 15 additions and 16 deletions

View file

@ -70,7 +70,7 @@ export async function getResource(req: Request, res: Response, next: NextFunctio
status: HttpCode.OK,
});
} catch (error) {
logger.error(error);
throw error;
return next(createHttpError(HttpCode.INTERNAL_SERVER_ERROR, "An error occurred..."));
}
}