#23 - ecs fix
This commit is contained in:
@@ -21,7 +21,9 @@ class UserObserver
|
||||
{
|
||||
$user->saveAvatar($this->generator->generateFor($user));
|
||||
|
||||
$user->vacationLimits()->create(["year_period_id" => $this->yearPeriodRetriever->current()->id]);
|
||||
$user->vacationLimits()->create([
|
||||
"year_period_id" => $this->yearPeriodRetriever->current()->id,
|
||||
]);
|
||||
}
|
||||
|
||||
public function updating(User $user): void
|
||||
|
@@ -20,7 +20,9 @@ class YearPeriodObserver
|
||||
$users = User::all();
|
||||
|
||||
foreach ($users as $user) {
|
||||
$yearPeriod->vacationLimits()->updateOrCreate(["user_id" => $user->id]);
|
||||
$yearPeriod->vacationLimits()->updateOrCreate([
|
||||
"user_id" => $user->id,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user