Skip to content

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

refactor: return error

Marc Seitz28320a1ef66e
diff --git a/lib/unsend.ts b/lib/unsend.ts
index 3afc9e19..d065af15 100644
--- a/lib/unsend.ts
+++ b/lib/unsend.ts
@@ -24,7 +24,7 @@ const subscribe = async (email: string) => {
});
if (!contactId.data?.contactId) {
- throw new Error("Failed to add user to contact book");
+ return;
}
await prisma.user.update({