Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: cleanup
Marc Seitzdeaf1200fd92
diff --git a/lib/resend.ts b/lib/resend.tsindex 175b7be4..6201d4a6 100644--- a/lib/resend.ts+++ b/lib/resend.ts@@ -110,15 +110,6 @@ export const subscribe = async (email: string): Promise<void> => {console.error("Failed to create contact:", error);return;}-- await prisma.user.update({- where: {- email,- },- data: {- contactId: data.id,- },- });};export const unsubscribe = async (email: string): Promise<void> => {@@ -127,16 +118,16 @@ export const unsubscribe = async (email: string): Promise<void> => {return;}- if (!email || email === "") {+ if (!email) {return;}const user = await prisma.user.findUnique({where: { email },- select: { contactId: true, email: true },+ select: { email: true },});- if (!user?.contactId || !user.email) {+ if (!user || !user.email) {return;}