mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-04 16:28: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;
|
||||
if ($first->id > 0) {
|
||||
if ($first->id > 0 && $first->blockchain === null) {
|
||||
/** @var \Modules\Auditor\Models\Audit $last */
|
||||
$last = AuditMapper::get()
|
||||
->sort('id', OrderType::DESC)
|
||||
|
|
@ -83,7 +83,7 @@ final class CliController extends Controller
|
|||
$current = $first;
|
||||
$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 */
|
||||
$batch = AuditMapper::getAll()
|
||||
->where('id', $endLastBatchId, '>')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user