From 84338ee1c184f6aad87b09cc8c4450feb40b2649 Mon Sep 17 00:00:00 2001 From: ClaraCrazy Date: Wed, 2 Oct 2024 00:05:48 +0200 Subject: [PATCH] fix forEach --- application/imap-service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/imap-service.js b/application/imap-service.js index c57ad22..d127a7d 100644 --- a/application/imap-service.js +++ b/application/imap-service.js @@ -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.`) }