fix: disable registration after creating the root user

This commit is contained in:
peaklabs-dev
2025-01-16 17:34:46 +01:00
parent b6633f083e
commit 3927e4850b
3 changed files with 15 additions and 7 deletions

View File

@@ -39,14 +39,15 @@ class ProductionSeeder extends Seeder
]);
}
}
// Seed root user first
$this->call(RootUserSeeder::class);
if (InstanceSettings::find(0) == null) {
InstanceSettings::create([
'id' => 0,
]);
}
$this->call(RootUserSeeder::class);
if (GithubApp::find(0) == null) {
GithubApp::create([
'id' => 0,