refactor: change OauthSetting creation to updateOrCreate for better handling of existing records
This commit is contained in:
parent
9832d92bda
commit
8a195c8cfb
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ public function run(): void
|
|||
}
|
||||
} else {
|
||||
foreach ($providers as $provider) {
|
||||
OauthSetting::create([
|
||||
OauthSetting::updateOrCreate([
|
||||
'provider' => $provider,
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue