mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-09-07 21:55:25 +08:00
fix(sending): Do not count sending limits twice (#505)
This commit is contained in:
parent
e43ba60069
commit
b9349f6e83
1 changed files with 1 additions and 1 deletions
|
@ -2326,7 +2326,7 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
|
|||
|
||||
let limitCheck;
|
||||
try {
|
||||
limitCheck = await messageHandler.counters.asyncTTLCounter('wdr:' + userData._id.toString(), envelope.to.length, maxRecipients, false);
|
||||
limitCheck = await messageHandler.counters.asyncTTLCounter('wdr:' + userData._id.toString(), 0, maxRecipients, false);
|
||||
} catch (err) {
|
||||
res.status(500);
|
||||
return res.json({
|
||||
|
|
Loading…
Add table
Reference in a new issue