Skip to content

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

Update lib/trigger/dataroom-upload-notification.ts

Marc Seitz2955ea4285d7
diff --git a/lib/trigger/dataroom-upload-notification.ts b/lib/trigger/dataroom-upload-notification.ts
index 4cd70e62..0250da9a 100644
--- a/lib/trigger/dataroom-upload-notification.ts
+++ b/lib/trigger/dataroom-upload-notification.ts
@@ -128,7 +128,7 @@ export const sendDataroomUploadNotificationTask = task({
(upload) => upload.originalFilename || "Untitled document",
);
- // Use the first uploader's email (uploads in same batch might be from different visitors)
+ // Use the viewer's email from the uploads
const uploaderEmail = recentUploads[0]?.viewer?.email || null;
const linkName =