Merge pull request #870 from openclassify/vedatt

count problem fixed
This commit is contained in:
Fatih Alp 2020-12-18 19:20:00 +03:00 committed by GitHub
commit 67b3f1dbfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,6 +421,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
return DB::table('advs_advs')
->whereDate('finish_at', '>=', date("Y-m-d H:i:s"))
->where('status', 'approved')
->whereNull('deleted_at')
->where('slug', '!=', '')
->where('cat' . $level, $catID)
->count();