Merge pull request #346 from openclassify/dia

celep bug fixes
This commit is contained in:
Fatih Alp 2020-02-20 09:49:11 +03:00 committed by GitHub
commit 50b9e34525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,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()