#3316 Emlak24 Issues

This commit is contained in:
Diatrex 2021-02-11 14:42:04 +03:00
parent 2242180b4b
commit 9a8fa8322d

View File

@ -468,7 +468,9 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
$advs = $this->newQuery()->where('id', $allAds);
}
$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
->where('slug', '!=', '')
->update(['finish_at' => $newDate]);
}
public function getByUsersIDs($usersIDs, $status = 'approved', $withDraft = false)