Skip to content

Commit

Permalink
fix(sending): Do not count sending limits twice (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Sep 28, 2023
1 parent e43ba60 commit b9349f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit b9349f6

Please sign in to comment.