This commit is contained in:
邓皓元 2019-02-08 08:06:15 +08:00
parent bd5ed09cb6
commit df95b8a465
3 changed files with 6 additions and 6 deletions

View File

@ -43,11 +43,11 @@ class MongoSync extends Command
while ($total) {
$page++;
$jobs->push(new MongoSyncJob($page, $this->limit, $utcDateTime));
if ($page * $this->limit >= $total) {
break;
}
$jobs->push(new MongoSyncJob($page, $this->limit, $utcDateTime));
}
$total && MongoSyncJob::withChain($jobs->toArray())

View File

@ -45,11 +45,11 @@ class CardSync extends Command
while ($total) {
$page++;
$jobs->push(new CardSyncJob($page, $this->limit, $maxId));
if ($page * $this->limit >= $total) {
break;
}
$jobs->push(new CardSyncJob($page, $this->limit, $maxId));
}
$total && CardSyncJob::withChain($jobs->toArray())

View File

@ -51,11 +51,11 @@ class LogSync extends Command
while ($total) {
$page++;
$jobs->push(new LogSyncJob($page, $this->limit, $maxId));
if ($page * $this->limit >= $total) {
break;
}
$jobs->push(new LogSyncJob($page, $this->limit, $maxId));
}
$total && LogSyncJob::withChain($jobs->toArray())