Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: add processing to versions

Marc Seitz6c12757a18d1
diff --git a/components/documents/process-status-bar.tsx b/components/documents/process-status-bar.tsx
index c44b7f45..faa091b6 100644
--- a/components/documents/process-status-bar.tsx
+++ b/components/documents/process-status-bar.tsx
@@ -17,7 +17,10 @@ export default function ProcessStatusBar({
<Progress
value={0}
text="Processing document..."
- className={cn("w-full rounded-none", className)}
+ className={cn(
+ "w-full text-[8px] font-semibold rounded-none",
+ className,
+ )}
/>
);
}
diff --git a/pages/api/teams/[teamId]/documents/[id]/versions/index.ts b/pages/api/teams/[teamId]/documents/[id]/versions/index.ts
index 2c016dfd..ab1c250c 100644
--- a/pages/api/teams/[teamId]/documents/[id]/versions/index.ts
+++ b/pages/api/teams/[teamId]/documents/[id]/versions/index.ts
@@ -83,6 +83,7 @@ export default async function handle(
// trigger document uploaded event to trigger convert-pdf-to-image job
await client.sendEvent({
+ id: version.id,
name: "document.uploaded",
payload: {
documentVersionId: version.id,