fix: do not error on update email
This commit is contained in:
parent
f408d603cf
commit
d3f422a7fb
1 changed files with 5 additions and 1 deletions
|
|
@ -96,7 +96,11 @@ private function disable_metrics()
|
|||
|
||||
private function update_user_emails()
|
||||
{
|
||||
User::whereRaw('email ~ \'[A-Z]\'')->get()->each(fn (User $user) => $user->update(['email' => strtolower($user->email)]));
|
||||
try {
|
||||
User::whereRaw('email ~ \'[A-Z]\'')->get()->each(fn (User $user) => $user->update(['email' => strtolower($user->email)]));
|
||||
} catch (\Throwable $e) {
|
||||
echo "Error in updating user emails: {$e->getMessage()}\n";
|
||||
}
|
||||
}
|
||||
|
||||
private function update_traefik_labels()
|
||||
|
|
|
|||
Loading…
Reference in a new issue