celep bug fixes

This commit is contained in:
Diatrex 2020-02-20 09:46:15 +03:00
parent a5b8054acd
commit 8f245f9467

View File

@ -160,7 +160,8 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
public function popularAdvs()
{
return $this->getAdv()->orderBy('count_show_ad', 'desc')->limit(10)->get();
return $this->getAdv()->where('status', 'approved')
->orderBy('count_show_ad', 'desc')->limit(10)->get();
}
public function advsofDay()