Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: types
Marc Seitz78bf30b34b05
diff --git a/components/datarooms/actions/remove-document-modal.tsx b/components/datarooms/actions/remove-document-modal.tsxindex a2bd518a..dcab808a 100644--- a/components/datarooms/actions/remove-document-modal.tsx+++ b/components/datarooms/actions/remove-document-modal.tsx@@ -70,7 +70,7 @@ function RemoveDataroomDocumentsModal({const errors = results.filter((result) => result.status === "rejected")- .map((result) => result.reason);+ .map((result) => (result as PromiseRejectedResult).reason);// Deselect only the successfully deleted documentssetSelectedDocuments((prevSelected) =>diff --git a/components/documents/actions/delete-documents-modal.tsx b/components/documents/actions/delete-documents-modal.tsxindex 6d85630b..d6868e25 100644--- a/components/documents/actions/delete-documents-modal.tsx+++ b/components/documents/actions/delete-documents-modal.tsx@@ -85,7 +85,7 @@ function DeleteDocumentsModal({const errors = results.filter((result) => result.status === "rejected")- .map((result) => result.reason);+ .map((result) => (result as PromiseRejectedResult).reason);// Deselect only the successfully deleted documentssetSelectedDocuments((prevSelected) =>diff --git a/pages/api/teams/[teamId]/datarooms/trial.ts b/pages/api/teams/[teamId]/datarooms/trial.tsindex 1cf1c4e8..7f931397 100644--- a/pages/api/teams/[teamId]/datarooms/trial.ts+++ b/pages/api/teams/[teamId]/datarooms/trial.ts@@ -10,7 +10,6 @@ import prisma from "@/lib/prisma";import {sendDataroomTrialExpiredEmailTask,sendDataroomTrialInfoEmailTask,- sendScheduledEmailTask,} from "@/lib/trigger/send-scheduled-email";import { CustomUser } from "@/lib/types";import { log } from "@/lib/utils";