diff --git a/services/web/scripts/fix_group_invite_emails_to_lowercase.js b/services/web/scripts/fix_group_invite_emails_to_lowercase.js index 6e37753a45..69cd273160 100644 --- a/services/web/scripts/fix_group_invite_emails_to_lowercase.js +++ b/services/web/scripts/fix_group_invite_emails_to_lowercase.js @@ -14,7 +14,7 @@ function anyInviteEmailHasUppercaseChars(subscription) { } async function processBatch(_, subscriptions) { - subscriptions.forEach(subscription => { + for (const subscription of subscriptions) { if (anyInviteEmailHasUppercaseChars(subscription)) { console.log('fixing emails in group invites for', subscription._id) if (!DRY_RUN) { @@ -41,7 +41,7 @@ async function processBatch(_, subscriptions) { ]) } } - }) + } } async function main() {