This commit is contained in:
Andris Reinman 2019-05-08 15:09:21 +03:00
parent 54c02937fb
commit f8ee378ea0
2 changed files with 2 additions and 2 deletions

View file

@ -3768,7 +3768,7 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler) => {
async function getFilteredMessageCount(filter) {
if (Object.keys(filter).length === 1 && filter.mailbox) {
// try to use cached value to get the count
return await getMailboxCounter(db, filter.mailbox);
return await getMailboxCounter(db, filter.mailbox, false);
}
return await db.database.collection('messages').countDocuments(filter);

View file

@ -1,6 +1,6 @@
{
"name": "wildduck",
"version": "1.19.1",
"version": "1.19.2",
"description": "IMAP/POP3 server built with Node.js and MongoDB",
"main": "server.js",
"scripts": {