mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-16 13:38:41 +00:00
rector fixes + bug fixes
This commit is contained in:
parent
4e65677a7e
commit
4f16c6dfbc
|
|
@ -68,7 +68,7 @@ final class CliController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
if ($first->id > 0) {
|
if ($first->id > 0 && $first->blockchain === null) {
|
||||||
/** @var \Modules\Auditor\Models\Audit $last */
|
/** @var \Modules\Auditor\Models\Audit $last */
|
||||||
$last = AuditMapper::get()
|
$last = AuditMapper::get()
|
||||||
->sort('id', OrderType::DESC)
|
->sort('id', OrderType::DESC)
|
||||||
|
|
@ -83,7 +83,7 @@ final class CliController extends Controller
|
||||||
$current = $first;
|
$current = $first;
|
||||||
$endLastBatchId = $first->id - 1;
|
$endLastBatchId = $first->id - 1;
|
||||||
|
|
||||||
while ($current->id !== 0 && $current->id <= $last->id) {
|
while ($current->id !== 0 && $current->id < $last->id) {
|
||||||
/** @var \Modules\Auditor\Models\Audit[] $batch */
|
/** @var \Modules\Auditor\Models\Audit[] $batch */
|
||||||
$batch = AuditMapper::getAll()
|
$batch = AuditMapper::getAll()
|
||||||
->where('id', $endLastBatchId, '>')
|
->where('id', $endLastBatchId, '>')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user