mirror of
https://github.com/documenso/documenso.git
synced 2025-11-18 10:42:01 +10:00
fix: additional backwards compat
This commit is contained in:
@ -39,7 +39,16 @@ export const createEmbeddingDocumentRoute = procedure
|
||||
type: EnvelopeType.DOCUMENT,
|
||||
title,
|
||||
externalId,
|
||||
recipients,
|
||||
recipients: (recipients || []).map((recipient) => ({
|
||||
...recipient,
|
||||
fields: (recipient.fields || []).map((field) => ({
|
||||
...field,
|
||||
page: field.pageNumber,
|
||||
positionX: field.pageX,
|
||||
positionY: field.pageY,
|
||||
documentDataId,
|
||||
})),
|
||||
})),
|
||||
envelopeItems: [
|
||||
{
|
||||
documentDataId,
|
||||
|
||||
@ -42,7 +42,13 @@ export const getMultiSignDocumentRoute = procedure
|
||||
// Transform fields to match our schema
|
||||
const transformedFields = fields.map((field) => ({
|
||||
...field,
|
||||
recipient,
|
||||
recipient: {
|
||||
...recipient,
|
||||
documentId: document.id,
|
||||
templateId: null,
|
||||
},
|
||||
documentId: document.id,
|
||||
templateId: null,
|
||||
}));
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user