We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8b5c8ad + 36df845 commit f79ddabCopy full SHA for f79ddab
plugins/push/api/send/sender.js
@@ -102,7 +102,7 @@ class Sender {
102
* Watch push collection for pushes to send,
103
*/
104
async watch() {
105
- let oid = dbext.oidBlankWithDate(new Date(Date.now() + this.cfg.sendAhead));
+ let oid = dbext.oidBlankWithDate(new Date(Date.now()));
106
try {
107
await common.db.collection('push').watch([{$match: {_id: {$lte: oid}}}], {maxAwaitTimeMS: 60000}).next();
108
return true;
0 commit comments