-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send emails to subscribers in batches of 50 to avoid SMTP limit #9570
Conversation
bcc: recipients, | ||
subject: subject | ||
) | ||
while recipients.length > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use recipients.length.positive?
instead of recipients.length > 0
.
bcc: recipients, | ||
subject: subject | ||
) | ||
while recipients.length > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use recipients.length.positive?
instead of recipients.length > 0
.
bcc: recipients, | ||
subject: subject | ||
) | ||
while recipients.length > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use !empty?
instead of length > 0
.
bcc: recipients, | ||
subject: subject | ||
) | ||
while recipients.length > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use !empty?
instead of length > 0
.
Code Climate has analyzed commit 7443d47 and detected 4 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## main #9570 +/- ##
=======================================
Coverage ? 81.38%
=======================================
Files ? 98
Lines ? 5926
Branches ? 0
=======================================
Hits ? 4823
Misses ? 1103
Partials ? 0 |
Fixes https://github.com/steviepubliclab/web/issues/326