Skip to content

Commit

Permalink
Merge pull request #155 from HiEventsDev/develop
Browse files Browse the repository at this point in the history
Fix organizer event list
  • Loading branch information
daveearley authored Aug 22, 2024
2 parents 9a4dd95 + 8f50c48 commit 8bad668
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions backend/app/Repository/Eloquent/EventRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,7 @@ public function findEvents(array $where, QueryParamsDTO $params): LengthAwarePag

$organizerId = $params->filter_fields->first(fn ($filter) => $filter->field === EventDomainObjectAbstract::ORGANIZER_ID)?->value;
if ($organizerId) {
$where[] = static function (Builder $builder) use ($params) {
$builder
->where(EventDomainObjectAbstract::ORGANIZER_ID, $params
->filter_fields
->get(EventDomainObjectAbstract::ORGANIZER_ID)
);
};
$this->model = $this->model->where(EventDomainObjectAbstract::ORGANIZER_ID, $organizerId);
}
}

Expand Down

0 comments on commit 8bad668

Please sign in to comment.