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

View File

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

View File

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

View File

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