break
This commit is contained in:
parent
80547ccb30
commit
df6dce5429
@ -40,7 +40,11 @@ class MongoSync extends Command
|
||||
|
||||
$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));
|
||||
|
||||
$page++;
|
||||
|
@ -42,7 +42,11 @@ class CardSync extends Command
|
||||
|
||||
$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));
|
||||
|
||||
$page++;
|
||||
|
@ -48,7 +48,11 @@ class LogSync extends Command
|
||||
|
||||
$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));
|
||||
|
||||
$page++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user