mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 15:18:05 +00:00
Code for #1324
This commit is contained in:
@@ -119,9 +119,11 @@ class UpgradeDatabase extends Command
|
||||
}
|
||||
|
||||
// loop bills.
|
||||
$order = 1;
|
||||
$order = 1;
|
||||
/** @var Collection $collection */
|
||||
$collection = $user->bills()->where('active', 1)->get();
|
||||
/** @var Bill $bill */
|
||||
foreach ($user->bills()->get() as $bill) {
|
||||
foreach ($collection as $bill) {
|
||||
if ($bill->match !== 'MIGRATED_TO_RULES') {
|
||||
$rule = Rule::create(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user