summaryrefslogtreecommitdiff
path: root/lib/po/service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/po/service.ts')
-rw-r--r--lib/po/service.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/po/service.ts b/lib/po/service.ts
index 0653c11a..f697bd58 100644
--- a/lib/po/service.ts
+++ b/lib/po/service.ts
@@ -324,6 +324,7 @@ Remarks:${contract.remarks}`,
const { success: sendDocuSignResult, envelopeId } = sendDocuSign;
+
await tx
.update(contracts)
.set({
@@ -343,8 +344,7 @@ Remarks:${contract.remarks}`,
const fileName = `${contractNo}-signature.pdf`;
const ext = path.extname(fileName);
const uniqueName = uuidv4() + ext;
-
- // Create a single envelope for all signers
+ // Create a single envelope for all signers
const [newEnvelope] = await tx
.insert(contractEnvelopes)
.values({
@@ -352,6 +352,7 @@ Remarks:${contract.remarks}`,
envelopeId: envelopeId,
envelopeStatus: "sent",
fileName: `${contractNo}-signature.pdf`, // Required field
+
filePath: `/contracts/${validatedData.contractId}/signatures/${uniqueName}`, // Required field
// Add any other required fields based on your schema
})