Skip to content

Commit

Permalink
fix post filter for get messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mh-Asmi committed Jan 18, 2024
1 parent 7615477 commit 7755162
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ private function setSearchCondition(MessageSearchFields $search_fields, $builder
$builder->where('messages.contact_id', '=', $search_fields->contact());
}

if ($search_fields->post()) {
$builder->where('messages.post_id', '=', $search_fields->post());
}

if ($search_fields->type()) {
$builder->where('messages.type', '=', $search_fields->type());
}
Expand Down

0 comments on commit 7755162

Please sign in to comment.