fix: typo

This commit is contained in:
David Nguyen
2026-07-11 19:42:52 +08:00
parent 933459dd5f
commit 83b021c167
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -361,9 +361,9 @@ export const seedAlignmentTestDocument = async ({
const { id, recipients, envelopeItems } = createdEnvelope; const { id, recipients, envelopeItems } = createdEnvelope;
if (isDirectTemplate) { if (isDirectTemplate) {
const directTemplateRecpient = recipients.find((recipient) => recipient.email === DIRECT_TEMPLATE_RECIPIENT_EMAIL); const directTemplateRecipient = recipients.find((recipient) => recipient.email === DIRECT_TEMPLATE_RECIPIENT_EMAIL);
if (!directTemplateRecpient) { if (!directTemplateRecipient) {
throw new Error('Need to create a direct template recipient'); throw new Error('Need to create a direct template recipient');
} }
@@ -372,7 +372,7 @@ export const seedAlignmentTestDocument = async ({
envelopeId: id, envelopeId: id,
enabled: true, enabled: true,
token: directTemplateToken ?? Math.random().toString(), token: directTemplateToken ?? Math.random().toString(),
directTemplateRecipientId: directTemplateRecpient.id, directTemplateRecipientId: directTemplateRecipient.id,
}, },
}); });
} }
+4 -4
View File
@@ -205,11 +205,11 @@ export const seedDirectTemplate = async (options: SeedTemplateOptions) => {
}, },
}); });
const directTemplateRecpient = template.recipients.find( const directTemplateRecipient = template.recipients.find(
(recipient) => recipient.email === DIRECT_TEMPLATE_RECIPIENT_EMAIL, (recipient) => recipient.email === DIRECT_TEMPLATE_RECIPIENT_EMAIL,
); );
if (!directTemplateRecpient) { if (!directTemplateRecipient) {
throw new Error('Need to create a direct template recipient'); throw new Error('Need to create a direct template recipient');
} }
@@ -218,7 +218,7 @@ export const seedDirectTemplate = async (options: SeedTemplateOptions) => {
envelopeId: template.id, envelopeId: template.id,
enabled: true, enabled: true,
token: Math.random().toString(), token: Math.random().toString(),
directTemplateRecipientId: directTemplateRecpient.id, directTemplateRecipientId: directTemplateRecipient.id,
}, },
}); });
@@ -233,7 +233,7 @@ export const seedDirectTemplate = async (options: SeedTemplateOptions) => {
data: { data: {
envelopeId: template.id, envelopeId: template.id,
envelopeItemId: envelopeItem.id, envelopeItemId: envelopeItem.id,
recipientId: directTemplateRecpient.id, recipientId: directTemplateRecipient.id,
type: FieldType.SIGNATURE, type: FieldType.SIGNATURE,
page: 1, page: 1,
positionX: 5, positionX: 5,