Skip to content

Commit f79ddab

Browse files
authored
Merge pull request #3038 from Countly/feature/pushy
[push] Removing -1 min sending from watch while leaving it in send
2 parents 8b5c8ad + 36df845 commit f79ddab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/push/api/send/sender.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class Sender {
102102
* Watch push collection for pushes to send,
103103
*/
104104
async watch() {
105-
let oid = dbext.oidBlankWithDate(new Date(Date.now() + this.cfg.sendAhead));
105+
let oid = dbext.oidBlankWithDate(new Date(Date.now()));
106106
try {
107107
await common.db.collection('push').watch([{$match: {_id: {$lte: oid}}}], {maxAwaitTimeMS: 60000}).next();
108108
return true;

0 commit comments

Comments
 (0)