Commit 768f2aee by Vladislav

fix both in app/Console/Kernel.php

2 parents 9d038eb4 2ececf2d
...@@ -74,8 +74,6 @@ class Kernel extends ConsoleKernel ...@@ -74,8 +74,6 @@ class Kernel extends ConsoleKernel
$schedule->command(RetargetinglistsUpdate::class)->hourlyAt(10); $schedule->command(RetargetinglistsUpdate::class)->hourlyAt(10);
$schedule->command(NegativeKeywordSharedSetsLoad::class)->hourlyAt(10); $schedule->command(NegativeKeywordSharedSetsLoad::class)->hourlyAt(10);
$schedule->command(NegativeKeywordSharedSetsAdd::class)->hourlyAt(15);
$schedule->command(NegativeKeywordSharedSetsUpdate::class)->hourlyAt(15);
$schedule->command(CampaignsAdd::class)->hourlyAt(15); $schedule->command(CampaignsAdd::class)->hourlyAt(15);
$schedule->command(CampaignsUpdate::class)->hourlyAt(15); $schedule->command(CampaignsUpdate::class)->hourlyAt(15);
...@@ -94,6 +92,9 @@ class Kernel extends ConsoleKernel ...@@ -94,6 +92,9 @@ class Kernel extends ConsoleKernel
$schedule->command(VCardsAdd::class)->hourlyAt(35); $schedule->command(VCardsAdd::class)->hourlyAt(35);
$schedule->command(AdExtensionsAdd::class)->hourlyAt(35); $schedule->command(AdExtensionsAdd::class)->hourlyAt(35);
$schedule->command(SitelinksAdd::class)->hourlyAt(35); $schedule->command(SitelinksAdd::class)->hourlyAt(35);
$schedule->command(NegativeKeywordSharedSetsAdd::class)->hourlyAt(35);
$schedule->command(NegativeKeywordSharedSetsUpdate::class)->hourlyAt(35);
$schedule->command(RetargetinglistsAdd::class)->hourlyAt(35);
$schedule->command(AdGroupsAdd::class)->hourlyAt(35); $schedule->command(AdGroupsAdd::class)->hourlyAt(35);
$schedule->command(AdGroupsUpdate::class)->hourlyAt(35); $schedule->command(AdGroupsUpdate::class)->hourlyAt(35);
......
...@@ -43,12 +43,10 @@ class YandexDirect extends API{ ...@@ -43,12 +43,10 @@ class YandexDirect extends API{
public function execute(): Response public function execute(): Response
{ {
// Log::debug($this->request->getBody());
$result = Http::withBody($this->request->getBody(), 'none') $result = Http::withBody($this->request->getBody(), 'none')
->withHeaders($this->request->getHeaders()) ->withHeaders($this->request->getHeaders())
->withToken($this->request->getToken()->token) ->withToken($this->request->getToken()->token)
->post($this->request->getUrl()); ->post($this->request->getUrl());
// Log::debug($result->json());
return $result; return $result;
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!