Fix participant email template (#417)

This commit is contained in:
Luke Vella 2023-01-20 15:29:18 +00:00 committed by GitHub
parent 2b02dbc788
commit 9deb45bd33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: {