0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fixed bulk-email service loop

no-issue
This commit is contained in:
Fabien O'Carroll 2019-11-04 13:23:24 +07:00
parent 2ac2975178
commit 39688cef07

View file

@ -22,7 +22,7 @@ module.exports = {
* @returns {Promise<boolean>} A promise representing the success of the email sending
*/
async send(message, recipients) {
for (const recipient in recipients) {
for (const recipient of recipients) {
const messageToSend = Object.assign({}, message, {
to: recipient
});