fix: disable registration after creating the root user

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

No files matched your search

+3 -2
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,