chore: remove same email check from backend

This commit is contained in:
Catalin Pit
2025-01-27 17:08:55 +02:00
parent 9f9f6701c8
commit 071f5c546d
6 changed files with 48 additions and 138 deletions

View File

@ -51,12 +51,7 @@ export const ZCreateDocumentFromTemplateRequestSchema = z.object({
name: z.string().optional(),
}),
)
.describe('The information of the recipients to create the document with.')
.refine((recipients) => {
const emails = recipients.map((signer) => signer.email);
return new Set(emails).size === emails.length;
}, 'Recipients must have unique emails'),
.describe('The information of the recipients to create the document with.'),
distributeDocument: z
.boolean()
.describe('Whether to create the document as pending and distribute it to recipients.')