This commit is contained in:
Andris Reinman 2022-12-04 11:39:42 +02:00
parent 4c940fc3f4
commit 99cd233476
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364
2 changed files with 4 additions and 3 deletions

View file

@ -2240,12 +2240,13 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
let limitCheck;
try {
limitCheck = await messageHandler.counters.ttlcounter('wdr:' + userData._id.toString(), envelope.to.length, maxRecipients, false);
limitCheck = await messageHandler.counters.asyncTTLCounter('wdr:' + userData._id.toString(), envelope.to.length, maxRecipients, false);
} catch (err) {
res.status(500);
return res.json({
error: 'Database error',
code: 'InternalDatabaseError'
code: 'InternalDatabaseError',
stack: err.stack
});
}

View file

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