fix forEach
parent
1f0d57bad0
commit
84338ee1c1
|
@ -225,7 +225,7 @@ class ImapService extends EventEmitter {
|
||||||
|
|
||||||
debug(`deleting mails ${uids}`)
|
debug(`deleting mails ${uids}`)
|
||||||
await this.connection.deleteMessage(uids)
|
await this.connection.deleteMessage(uids)
|
||||||
toDelete.forEach(uid => this.emit(ImapService.EVENT_DELETED_MAIL, uid))
|
uids.forEach(uid => this.emit(ImapService.EVENT_DELETED_MAIL, uid))
|
||||||
console.log(`deleted ${uids.length} old messages.`)
|
console.log(`deleted ${uids.length} old messages.`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue