mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
Merge pull request #614 from openclassify/dia
#1766 [core] Yarım kalan ilan listelemede görünüyor
This commit is contained in:
commit
f49b331707
@ -40,7 +40,8 @@
|
|||||||
'villages':villages,
|
'villages':villages,
|
||||||
'param':param,
|
'param':param,
|
||||||
'categoryId':categoryId,
|
'categoryId':categoryId,
|
||||||
'cityId':cityId
|
'cityId':cityId,
|
||||||
|
'_ORDER_':['visiosoft.module.cats', 'visiosoft.module.location']
|
||||||
})|raw }}
|
})|raw }}
|
||||||
|
|
||||||
<!-- Price Filter Start -->
|
<!-- Price Filter Start -->
|
||||||
|
|||||||
@ -433,4 +433,14 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
|||||||
$newDate = date('Y-m-d H:i:s', strtotime(date('Y-m-d H:i:s') . ' + ' . setting_value('visiosoft.module.advs::default_published_time') . ' day'));
|
$newDate = date('Y-m-d H:i:s', strtotime(date('Y-m-d H:i:s') . ' + ' . setting_value('visiosoft.module.advs::default_published_time') . ' day'));
|
||||||
return $advs->update(['finish_at' => $newDate]);
|
return $advs->update(['finish_at' => $newDate]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getByUsersIDs($usersIDs)
|
||||||
|
{
|
||||||
|
return $this
|
||||||
|
->newQuery()
|
||||||
|
->whereIn('advs_advs.created_by_id', $usersIDs)
|
||||||
|
->where('advs_advs.slug', '!=', "")
|
||||||
|
->where('advs_advs.status', 'approved')
|
||||||
|
->where('advs_advs.finish_at', '>', date('Y-m-d H:i:s'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,4 +35,6 @@ interface AdvRepositoryInterface extends EntryRepositoryInterface
|
|||||||
public function getCategoriesWithAdID($id);
|
public function getCategoriesWithAdID($id);
|
||||||
|
|
||||||
public function extendAds($allAds, $isAdmin = false);
|
public function extendAds($allAds, $isAdmin = false);
|
||||||
|
|
||||||
|
public function getByUsersIDs($usersIDs);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user