chore: allow duplicate recipient in templates

This commit is contained in:
Catalin Pit
2025-02-06 16:58:16 +02:00
parent b684b9574d
commit 2896673a23
4 changed files with 12 additions and 9 deletions

View File

@ -22,8 +22,8 @@ export type SetFieldsForTemplateOptions = {
fields: {
id?: number | null;
type: FieldType;
signerEmail: string;
recipientId: number;
signerEmail: string;
pageNumber: number;
pageX: number;
pageY: number;
@ -181,10 +181,8 @@ export const setFieldsForTemplate = async ({
},
recipient: {
connect: {
templateId_email: {
templateId,
email: field.signerEmail.toLowerCase(),
},
templateId,
id: field.recipientId,
},
},
},