From b3674b2fc5f4fb9267935dbbb2215d5e360dc90f Mon Sep 17 00:00:00 2001 From: NIDHI2023 Date: Sun, 19 Jan 2025 18:27:39 -0500 Subject: [PATCH] added new image links --- src/scripts/email/wrapped-email.js | 4 ++-- src/scripts/email/wrapped-email.ts | 5 +++-- src/scripts/email/wrapped-html.js | 2 +- src/scripts/email/wrapped-html.ts | 15 +++++++-------- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/scripts/email/wrapped-email.js b/src/scripts/email/wrapped-email.js index 1387c00d..beb25312 100644 --- a/src/scripts/email/wrapped-email.js +++ b/src/scripts/email/wrapped-email.js @@ -85,7 +85,7 @@ var createBatches = function (totalEmails, batchSize) { } if (emailObjs.length === MAX_EMAIL_LIMIT) { // eslint-disable-next-line no-console - console.log("Reached email limit of " + MAX_EMAIL_LIMIT + " emails per day, stopped at:\n i=" + i + ", user " + totalEmails[i] + "\nContinue from this user the next day by typing \"node src/scripts/email/wrapped-email.js " + i + "\""); + console.log("Reached email limit of " + MAX_EMAIL_LIMIT + " emails per day, stopped at:\n i=" + i + ", user " + totalEmails[i] + "\nContinue from this user the next day by typing \"node " + process.argv[1] + " " + i + "\""); } return emailObjs; }; @@ -116,7 +116,7 @@ var createBatches = function (totalEmails, batchSize) { _a.label = 3; case 3: _a.trys.push([3, 5, , 6]); - return [4 /*yield*/, resend.batch.send(createBatches(userEmails, 2))]; + return [4 /*yield*/, resend.batch.send(createBatches(userEmails, 49))]; case 4: data = _a.sent(); // eslint-disable-next-line no-console diff --git a/src/scripts/email/wrapped-email.ts b/src/scripts/email/wrapped-email.ts index 1e2e42ab..6aaddfa2 100644 --- a/src/scripts/email/wrapped-email.ts +++ b/src/scripts/email/wrapped-email.ts @@ -57,7 +57,7 @@ const createBatches = (totalEmails: string[], batchSize: number) => { // eslint-disable-next-line no-console console.log(`Reached email limit of ${MAX_EMAIL_LIMIT} emails per day, stopped at: i=${i}, user ${totalEmails[i]} -Continue from this user the next day by typing "node src/scripts/email/wrapped-email.js ${i}"`) +Continue from this user the next day by typing "node ${process.argv[1]} ${i}"`) } return emailObjs; @@ -84,8 +84,9 @@ Continue from this user the next day by typing "node src/scripts/email/wrapped-e try { const data = await resend.batch.send( - createBatches(userEmails, 2) + createBatches(userEmails, 49) ); + // eslint-disable-next-line no-console console.log("Emails have been sent!"); diff --git a/src/scripts/email/wrapped-html.js b/src/scripts/email/wrapped-html.js index 09e26ef3..8cdce529 100644 --- a/src/scripts/email/wrapped-html.js +++ b/src/scripts/email/wrapped-html.js @@ -2,4 +2,4 @@ exports.__esModule = true; exports.HTML = void 0; /* eslint-disable max-len */ -exports.HTML = " \n
\n\n
\n \"Queue\n
\n\n
\n

Hey there!

\n

\n As the semester is wrapping up, our team at Queue Me In wanted to celebrate all the hard work you've put in this semester \u2014 especially with office hours!
\n Presenting Queue Me In Wrapped, a way for you to see your yearly office hour stats. Check it out by navigating to a class on your home page and clicking on the ribbon icon!\n

\n\n

\n Congratulations on all your hard work this semester!
\n - The Queue Me In Team

\n
\n \"Bell\n \"Bell\n \"Bell\n
\n\n
\n\n
\n\n\n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n
\n

Office Hours

\n

Simplified.

\n
\n \"QMI\n \n

\n DTI Instagram\n
\n DTI Website\n
\n QueueMeIn\n
\n

\n
\n
\n\n\n"; +exports.HTML = " \n
\n\n
\n Queue Me In Wrapped Header\n\n
\n\n
\n

Hey there!

\n

\n As the semester is wrapping up, our team at Queue Me In wanted to celebrate all the hard work you've put in this semester \u2014 especially with office hours!
\n Presenting Queue Me In Wrapped, a way for you to see your yearly office hour stats. Check it out by navigating to a class on your home page and clicking on the ribbon icon!\n

\n\n

\n Congratulations on all your hard work this semester!
\n - The Queue Me In Team

\n
\n \"Bell\n \"Bell\n \"Bell\n
\n\n
\n\n
\n\n\n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n
\n

Office Hours

\n

Simplified.

\n
\n \"QMI\n \n

\n DTI Instagram\n
\n DTI Website\n
\n QueueMeIn\n
\n

\n
\n
\n"; diff --git a/src/scripts/email/wrapped-html.ts b/src/scripts/email/wrapped-html.ts index 857b858f..7506ddac 100644 --- a/src/scripts/email/wrapped-html.ts +++ b/src/scripts/email/wrapped-html.ts @@ -3,8 +3,9 @@ export const HTML =`
- Queue Me In Wrapped Header + Queue Me In Wrapped Header +
@@ -18,9 +19,9 @@ export const HTML =` Congratulations on all your hard work this semester!
- The Queue Me In Team

- Bell Icon - Bell Icon - Bell Icon + Bell Icon + Bell Icon + Bell Icon
@@ -40,7 +41,7 @@ export const HTML =` - QMI Logo + QMI Logo @@ -58,6 +59,4 @@ export const HTML =` - - ` \ No newline at end of file