Kaydet (Commit) b87e9a95 authored tarafından mertcelen's avatar mertcelen

Update control schedule changed to hourly.

üst 22cb55c7
......@@ -76,7 +76,7 @@ class Kernel extends ConsoleKernel
}
$array = $controller->checkMarketUpdates(true);
$collection = collect($array);
if (!$collection->where("updateAvailable", 1)->count()) {
if ($collection->where("updateAvailable", 1)->count()) {
AdminNotification::where('type', 'liman_update')->delete();
AdminNotification::create([
"title" => "Liman Güncellemesi Mevcut!",
......@@ -87,7 +87,7 @@ class Kernel extends ConsoleKernel
]);
}
})
->everyMinute()
->hourly()
->name('Update Check');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment