mirror of
https://github.com/documenso/documenso.git
synced 2025-11-24 05:32:12 +10:00
fix: wip
This commit is contained in:
@ -56,6 +56,7 @@ export const sendDocument = async ({
|
||||
recipients: {
|
||||
orderBy: [{ signingOrder: { sort: 'asc', nulls: 'last' } }, { id: 'asc' }],
|
||||
},
|
||||
fields: true,
|
||||
documentMeta: true,
|
||||
envelopeItems: {
|
||||
select: {
|
||||
@ -165,6 +166,16 @@ export const sendDocument = async ({
|
||||
});
|
||||
}
|
||||
|
||||
const fieldsToAutoInsert = [];
|
||||
|
||||
// Todo: Envelopes - Handle auto-signing
|
||||
if (envelope.internalVersion === 2) {
|
||||
// fieldsToAutoInsert = envelope.fields.filter((field) => !field.inserted);
|
||||
// if (fieldsToAutoInsert.length > 0) {
|
||||
// //
|
||||
// }
|
||||
}
|
||||
|
||||
const updatedEnvelope = await prisma.$transaction(async (tx) => {
|
||||
if (envelope.status === DocumentStatus.DRAFT) {
|
||||
await tx.documentAuditLog.create({
|
||||
|
||||
Reference in New Issue
Block a user