break
This commit is contained in:
parent
80547ccb30
commit
df6dce5429
@ -40,7 +40,11 @@ class MongoSync extends Command
|
|||||||
|
|
||||||
$jobs = new Collection();
|
$jobs = new Collection();
|
||||||
|
|
||||||
while ($total && ($page - 1) * $this->limit > $total) {
|
while ($total) {
|
||||||
|
if (($page - 1) * $this->limit >= $total) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
$jobs->push(new MongoSyncJob($page, $this->limit, $utcDateTime));
|
$jobs->push(new MongoSyncJob($page, $this->limit, $utcDateTime));
|
||||||
|
|
||||||
$page++;
|
$page++;
|
||||||
|
@ -42,7 +42,11 @@ class CardSync extends Command
|
|||||||
|
|
||||||
$jobs = new Collection();
|
$jobs = new Collection();
|
||||||
|
|
||||||
while ($total && ($page - 1) * $this->limit > $total) {
|
while ($total) {
|
||||||
|
if (($page - 1) * $this->limit >= $total) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
$jobs->push(new CardSyncJob($page, $this->limit, $maxId));
|
$jobs->push(new CardSyncJob($page, $this->limit, $maxId));
|
||||||
|
|
||||||
$page++;
|
$page++;
|
||||||
|
@ -48,7 +48,11 @@ class LogSync extends Command
|
|||||||
|
|
||||||
$jobs = new Collection();
|
$jobs = new Collection();
|
||||||
|
|
||||||
while ($total && ($page - 1) * $this->limit > $total) {
|
while ($total) {
|
||||||
|
if (($page - 1) * $this->limit >= $total) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
$jobs->push(new LogSyncJob($page, $this->limit, $maxId));
|
$jobs->push(new LogSyncJob($page, $this->limit, $maxId));
|
||||||
|
|
||||||
$page++;
|
$page++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user