Merge pull request #192 from openclassify/dia

#604 Video filtering
This commit is contained in:
Fatih Alp 2019-12-30 16:08:35 +03:00 committed by GitHub
commit e2b17fb31e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,11 +123,9 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
if (!empty($param['photo'])) {
$query = $query->whereNotNull('cover_photo');
}
// if (!empty($param['video'])) {
// $int = (int)$num;
// $column = "JSON_EXTRACT(foreign_currencies, '$." . $param['currency'] . "') <=" . $int;
// $query = $query->whereRaw($column);
// }
if (!empty($param['video'])) {
$query = $query->where('cover_photo', 'like', '%video/upload/w_400,e_loop%');
}
if (!empty($param['map']) && $param['map'] == true) {
$query = $query->whereNotNull('map_Val');
}