fix forEach

pull/16/head
ClaraCrazy 2024-10-02 00:05:48 +02:00
parent 1f0d57bad0
commit 84338ee1c1
No known key found for this signature in database
GPG Key ID: EBBC896ACB497011
1 changed files with 1 additions and 1 deletions

View File

@ -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.`)
}