Skip creation using if statement.

This commit is contained in:
James Cole
2024-05-26 15:36:30 +02:00
parent a20622ac0c
commit 7009b444d9
8 changed files with 42 additions and 30 deletions

View File

@@ -44,11 +44,10 @@ class ConfigSeeder extends Seeder
'data' => 1,
]
);
return;
}
if (null !== $entry) {
$version = (int)config('firefly.db_version');
$entry->data = $version;
$entry->save();
}
$version = (int) config('firefly.db_version');
$entry->data = $version;
$entry->save();
}
}