fix: enhancements

This commit is contained in:
David Nguyen
2024-04-25 22:28:41 +07:00
parent ef666b0e70
commit 39bd3e5880
3 changed files with 57 additions and 48 deletions

View File

@ -66,7 +66,9 @@ export const templateRouter = router({
userId: ctx.user.id,
teamId,
requestMetadata: extractNextApiRequestMetadata(ctx.req),
}).catch(() => {
}).catch((err) => {
console.error(err);
throw new AppError('DOCUMENT_SEND_FAILED');
});
}