|
@@ -383,9 +383,9 @@ class PostRepositories
|
|
|
$topicIds = json_decode($request['topic_ids'], true);
|
|
|
foreach ($topicIds as $key=>$id) {
|
|
|
if ($key==0) {
|
|
|
- $query->whereRaw('FIND_IN_SET('.$id.', topic_ids)');
|
|
|
+ $query = $query->whereRaw('FIND_IN_SET('.$id.', topic_ids)');
|
|
|
} else {
|
|
|
- $query->orWhereRaw('FIND_IN_SET('.$id.', topic_ids)');
|
|
|
+ $query = $query->orWhereRaw('FIND_IN_SET('.$id.', topic_ids)');
|
|
|
}
|
|
|
}
|
|
|
}
|