mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-09 09:27:38 +08:00
v1.19.2
This commit is contained in:
parent
54c02937fb
commit
f8ee378ea0
2 changed files with 2 additions and 2 deletions
|
@ -3768,7 +3768,7 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler) => {
|
||||||
async function getFilteredMessageCount(filter) {
|
async function getFilteredMessageCount(filter) {
|
||||||
if (Object.keys(filter).length === 1 && filter.mailbox) {
|
if (Object.keys(filter).length === 1 && filter.mailbox) {
|
||||||
// try to use cached value to get the count
|
// 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);
|
return await db.database.collection('messages').countDocuments(filter);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "wildduck",
|
"name": "wildduck",
|
||||||
"version": "1.19.1",
|
"version": "1.19.2",
|
||||||
"description": "IMAP/POP3 server built with Node.js and MongoDB",
|
"description": "IMAP/POP3 server built with Node.js and MongoDB",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue