From be668d1c1d99e760cf8d913d29d3245405331a37 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Tue, 26 Dec 2017 23:25:26 +0200 Subject: [PATCH] fixed error --- imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap.js b/imap.js index 21c4cdda..f9fa6c8a 100644 --- a/imap.js +++ b/imap.js @@ -310,7 +310,7 @@ function clearExpiredMessages() { return db.database.collection('messagelog').insertOne( { - id: messageData.meta.queueId || messageData._id.toString(), + id: (messageData.meta && messageData.meta.queueId) || messageData._id.toString(), action: 'DELETED', parentId: messageData._id, created: new Date()