From df5a7a606f9ec778cc9881c715343cde34ca2027 Mon Sep 17 00:00:00 2001 From: NIDHI2023 Date: Fri, 20 Dec 2024 13:45:59 -0500 Subject: [PATCH] address pr changes, made better system to rerun script if it hits max --- src/scripts/email/wrapped-email.js | 27 ++++++++++++++++++------ src/scripts/email/wrapped-email.ts | 34 ++++++++++++++++++++++-------- 2 files changed, 46 insertions(+), 15 deletions(-) diff --git a/src/scripts/email/wrapped-email.js b/src/scripts/email/wrapped-email.js index aa4101f7..1387c00d 100644 --- a/src/scripts/email/wrapped-email.js +++ b/src/scripts/email/wrapped-email.js @@ -46,17 +46,31 @@ firebase_admin_1["default"].initializeApp({ }); dotenv.config(); var resend = new resend_1.Resend(process.env.RESEND_API_KEY); +if (process.argv.length !== 3) { + throw new Error("Usage: node