fix: external id null for documents created from templates (#1362)

This commit is contained in:
Ephraim Duncan
2024-10-08 10:45:16 +00:00
committed by GitHub
parent e40f47a73c
commit cd3d9b701b
3 changed files with 9 additions and 6 deletions

View File

@ -101,7 +101,7 @@ export const templateRouter = router({
.input(ZCreateDocumentFromTemplateMutationSchema)
.mutation(async ({ input, ctx }) => {
try {
const { templateId, teamId } = input;
const { templateId, teamId, recipients } = input;
const limits = await getServerLimits({ email: ctx.user.email, teamId });
@ -115,7 +115,7 @@ export const templateRouter = router({
templateId,
teamId,
userId: ctx.user.id,
recipients: input.recipients,
recipients,
requestMetadata,
});