Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

Fix participant email template (#417)

Luke Vella9deb45bd331f
diff --git a/src/utils/api-utils.ts b/src/utils/api-utils.ts
index 382623d2d..4fc6ca131 100644
--- a/src/utils/api-utils.ts
+++ b/src/utils/api-utils.ts
@@ -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: {