mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-24 11:47:24 +02:00
Fix participant email template (#417)
This commit is contained in:
parent
2b02dbc788
commit
9deb45bd33
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ import * as Eta from "eta";
|
|||
|
||||
import { prisma } from "~/prisma/db";
|
||||
import newCommentTemplate from "~/templates/new-comment";
|
||||
import newParticipantTemplate from "~/templates/new-participant";
|
||||
|
||||
import { absoluteUrl } from "./absolute-url";
|
||||
import { sendEmail } from "./send-email";
|
||||
|
@ -46,7 +47,7 @@ export const sendNotification = async (
|
|||
switch (action.type) {
|
||||
case "newParticipant":
|
||||
await sendEmailTemplate({
|
||||
templateString: newCommentTemplate,
|
||||
templateString: newParticipantTemplate,
|
||||
to: poll.user.email,
|
||||
subject: `Rallly: ${poll.title} - New Participant`,
|
||||
templateVars: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue