Always reset order.

This commit is contained in:
James Cole
2021-03-27 15:13:48 +01:00
parent b7ba6f81da
commit 436bef01da

View File

@@ -134,10 +134,7 @@ class IndexController extends Controller
$subTitleIcon = config(sprintf('firefly.subIconsByIdentifier.%s', $objectType));
$types = config(sprintf('firefly.accountTypesByIdentifier.%s', $objectType));
if (1 === random_int(0, 20)) {
Log::debug('Will reset order.');
$this->repository->resetAccountOrder();
}
$collection = $this->repository->getActiveAccountsByType($types);
$total = $collection->count();