mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2466 [packages-module] error when trying to approve package
This commit is contained in:
parent
3f22510051
commit
99a53a863f
@ -451,7 +451,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
public function approveAds($adsIDs)
|
||||
{
|
||||
$defaultAdPublishTime = setting_value('visiosoft.module.advs::default_published_time');
|
||||
$ads = $this->newQuery()->where('advs_advs.id', $adsIDs)->update([
|
||||
$ads = $this->newQuery()->whereIn('advs_advs.id', $adsIDs)->update([
|
||||
'status' => 'approved',
|
||||
'finish_at' => date('Y-m-d H:i:s', strtotime(date('Y-m-d H:i:s') . ' + ' . $defaultAdPublishTime . ' day')),
|
||||
'publish_at' => date('Y-m-d H:i:s')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user