Skip to content

Commit

Permalink
Update ClassroomRepository.php
Browse files Browse the repository at this point in the history
  • Loading branch information
farahamaliaa committed Jul 16, 2024
1 parent da7a54e commit 3a9125a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Contracts/Repositories/ClassroomRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function paginate() : mixed

public function whereInSchoolYears($schoolYears)
{
return $this->model->query()->whereIn('school_year_id', $schoolYears)->get();
return $this->model->query()->where('school_year_id', $schoolYears)->get();
}

public function countClass(mixed $id): mixed
Expand Down

0 comments on commit 3a9125a

Please sign in to comment.