mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 10:16:32 +02:00
💬 Update email subject lines
This commit is contained in:
parent
e06c55c131
commit
611d04eaaa
5 changed files with 6 additions and 8 deletions
|
@ -150,7 +150,7 @@ export const polls = router({
|
|||
if (poll.verified) {
|
||||
await sendEmail("NewPollEmail", {
|
||||
to: input.user.email,
|
||||
subject: `Your poll for ${poll.title} has been created`,
|
||||
subject: `${poll.title} has been created`,
|
||||
props: {
|
||||
title: poll.title,
|
||||
name: input.user.name,
|
||||
|
@ -165,7 +165,7 @@ export const polls = router({
|
|||
|
||||
await sendEmail("NewPollVerificationEmail", {
|
||||
to: input.user.email,
|
||||
subject: `Your poll for ${poll.title} has been created`,
|
||||
subject: `${poll.title} has been created`,
|
||||
props: {
|
||||
title: poll.title,
|
||||
name: input.user.name,
|
||||
|
|
|
@ -100,7 +100,7 @@ export const participants = router({
|
|||
emailsToSend.push(
|
||||
sendEmail("NewParticipantConfirmationEmail", {
|
||||
to: email,
|
||||
subject: `Response submitted: ${poll.title}`,
|
||||
subject: `Response submitted for ${poll.title}`,
|
||||
props: {
|
||||
name,
|
||||
title: poll.title,
|
||||
|
|
|
@ -56,7 +56,7 @@ export const sendNotification = async (
|
|||
case "newParticipant":
|
||||
await sendEmail("NewParticipantEmail", {
|
||||
to: poll.user.email,
|
||||
subject: `New participant on ${poll.title}`,
|
||||
subject: `Response received on ${poll.title}`,
|
||||
props: {
|
||||
name: poll.user.name,
|
||||
participantName: action.participantName,
|
||||
|
|
|
@ -59,9 +59,7 @@ test.describe.serial(() => {
|
|||
wait: 5000,
|
||||
});
|
||||
|
||||
expect(email.headers.subject).toBe(
|
||||
"Your poll for Monthly Meetup has been created",
|
||||
);
|
||||
expect(email.headers.subject).toBe("Monthly Meetup has been created");
|
||||
|
||||
const $ = load(email.html);
|
||||
const verifyLink = $("#verifyEmailUrl").attr("href");
|
||||
|
|
|
@ -76,7 +76,7 @@ test.describe.parallel(() => {
|
|||
wait: 5000,
|
||||
});
|
||||
|
||||
expect(email.headers.subject).toBe("Response submitted: Lunch Meeting");
|
||||
expect(email.headers.subject).toBe("Response submitted for Lunch Meeting");
|
||||
|
||||
const $ = load(email.html);
|
||||
const href = $("#editSubmissionUrl").attr("href");
|
||||
|
|
Loading…
Add table
Reference in a new issue