mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-19 11:11:05 -05:00
fix invite email in serveless functions
This commit is contained in:
@@ -62,7 +62,7 @@ export default async function handle(req: NextApiRequest, res: NextApiResponse)
|
||||
if (!invite) {
|
||||
return res.status(403).json({ message: "You are not allowed to resend this invite" });
|
||||
}
|
||||
sendInviteMemberEmail(inviteId, invite?.creator.name, invite?.name, invite?.email);
|
||||
await sendInviteMemberEmail(inviteId, invite?.creator.name, invite?.name, invite?.email);
|
||||
|
||||
const updatedInvite = await prisma.invite.update({
|
||||
where: {
|
||||
|
||||
@@ -53,7 +53,7 @@ export default async function handle(req: NextApiRequest, res: NextApiResponse)
|
||||
},
|
||||
});
|
||||
|
||||
sendInviteMemberEmail(invite.id, currentUser.name, name, email);
|
||||
await sendInviteMemberEmail(invite.id, currentUser.name, name, email);
|
||||
|
||||
return res.status(201).json(invite);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user