Commit 645a5632 by Евгений

поправил загрузку измененных РК

1 parent 081c9b3b
Showing with 2 additions and 1 deletions
......@@ -46,8 +46,9 @@ class LoadUpdatedCampaigns extends Command
public function handle()
{
$campaigns = Campaigns::forUpdated()->get();
if (!$campaigns)
if (!$campaigns->count()){
return;
}
$token = Tokens::where('type', Tokens::MAIN)->first();
if (!$token){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!