Fix for _PushStatus Stuck 'running' when Count is Off (#4319)
* Fix for _PushStatus stuck 'running' if count is off * use 'count' for batches * push worker test fix
This commit is contained in:
committed by
Florent Vilmart
parent
842343a1a9
commit
c1a7347143
@@ -40,7 +40,7 @@ export class PushQueue {
|
||||
if (!results || count == 0) {
|
||||
return Promise.reject({error: 'PushController: no results in query'})
|
||||
}
|
||||
pushStatus.setRunning(count);
|
||||
pushStatus.setRunning(Math.ceil(count / limit));
|
||||
let skip = 0;
|
||||
while (skip < count) {
|
||||
const query = { where,
|
||||
|
||||
Reference in New Issue
Block a user