Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: add enable-pages step in trigger job
Marc Seitz804f0dbf8414
diff --git a/jobs/convert-pdf-to-image.ts b/jobs/convert-pdf-to-image.tsindex 65668bac..6858d04d 100644--- a/jobs/convert-pdf-to-image.ts+++ b/jobs/convert-pdf-to-image.ts@@ -97,6 +97,22 @@ client.defineJob({});};+ // after all pages are uploaded, update document version to hasPages = true+ await io.runTask("enable-pages", async () => {+ return prisma.documentVersion.update({+ where: {+ id: documentVersionId,+ },+ data: {+ hasPages: true,+ },+ select: {+ id: true,+ hasPages: true,+ }+ });+ });+return {success: true,message: "Successfully converted PDF to images",