mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -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)
|
public function approveAds($adsIDs)
|
||||||
{
|
{
|
||||||
$defaultAdPublishTime = setting_value('visiosoft.module.advs::default_published_time');
|
$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',
|
'status' => 'approved',
|
||||||
'finish_at' => date('Y-m-d H:i:s', strtotime(date('Y-m-d H:i:s') . ' + ' . $defaultAdPublishTime . ' day')),
|
'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')
|
'publish_at' => date('Y-m-d H:i:s')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user