mirror of
https://github.com/documenso/documenso.git
synced 2026-07-25 09:25:08 +10:00
fix: typo
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user