From 217ceab50e62afa87d0abba37d15543c9b18a296 Mon Sep 17 00:00:00 2001 From: Milo Schwartz Date: Sun, 24 Nov 2024 14:47:14 -0500 Subject: [PATCH] temporarily disable email on invite user --- server/routers/user/inviteUser.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/server/routers/user/inviteUser.ts b/server/routers/user/inviteUser.ts index f2e5895f..546ae479 100644 --- a/server/routers/user/inviteUser.ts +++ b/server/routers/user/inviteUser.ts @@ -146,20 +146,20 @@ export async function inviteUser( const inviteLink = `${config.app.base_url}/invite?token=${inviteId}-${token}`; logger.debug("here5") - await sendEmail( - SendInviteLink({ - email, - inviteLink, - expiresInDays: (validHours / 24).toString(), - orgName: org[0].name || orgId, - inviterName: req.user?.email, - }), - { - to: email, - from: config.email?.no_reply, - subject: "You're invited to join a Fossorial organization", - }, - ); + // await sendEmail( + // SendInviteLink({ + // email, + // inviteLink, + // expiresInDays: (validHours / 24).toString(), + // orgName: org[0].name || orgId, + // inviterName: req.user?.email, + // }), + // { + // to: email, + // from: config.email?.no_reply, + // subject: "You're invited to join a Fossorial organization", + // }, + // ); logger.debug("here6") return response(res, {