mirror of
https://github.com/Crazyco-xyz/48hr.email.git
synced 2025-07-01 06:27:09 +02:00
fix forEach
This commit is contained in:
parent
1f0d57bad0
commit
84338ee1c1
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ class ImapService extends EventEmitter {
|
|||
|
||||
debug(`deleting mails ${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.`)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue