This commit is contained in:
EwelinaLasowy
2022-02-14 15:30:09 +01:00
parent 885dcdf9bb
commit 131924da76
2 changed files with 3 additions and 5 deletions

View File

@@ -52,8 +52,8 @@ class DoesNotExceedLimitRule implements VacationRequestRule
->whereRelation(
"vacationRequest",
fn(Builder $query) => $query
->whereIn("type", $this->getLimitableVacationTypes())
->noStates(VacationRequestState::failedStates()),
->whereIn("type", $this->getLimitableVacationTypes())
->noStates(VacationRequestState::failedStates()),
)
->count();
}