Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: don't send empty digest
Marc Seitz944f208f9e3f
diff --git a/lib/emails/process-dataroom-digest.ts b/lib/emails/process-dataroom-digest.tsindex 69ac6b82..792a123a 100644--- a/lib/emails/process-dataroom-digest.ts+++ b/lib/emails/process-dataroom-digest.ts@@ -34,6 +34,8 @@ export async function processDataroomDigest(frequency: "daily" | "weekly") {}async function processBatch(batch: DigestBatch, frequency: "daily" | "weekly") {+ if (batch.items.length === 0) return;+const [viewer, dataroom, senderUser] = await Promise.all([prisma.viewer.findUnique({where: { id: batch.viewerId, teamId: batch.teamId },