throw error in invite

This commit is contained in:
Milo Schwartz 2024-11-24 12:37:48 -05:00
parent ca4f8d3877
commit e9ffffa419
No known key found for this signature in database

View file

@ -166,7 +166,7 @@ export async function inviteUser(
status: HttpCode.OK,
});
} catch (error) {
logger.error(error);
throw error;
return next(
createHttpError(HttpCode.INTERNAL_SERVER_ERROR, "An error occurred")
);