1
0

Fixed misspelled method name

This commit is contained in:
2020-04-30 01:31:45 +02:00
parent e59b6753a3
commit 9f208b312d

View File

@@ -30,7 +30,7 @@ class Kernel extends ConsoleKernel
{
// resubscribe to nearly expired hooks (1 hour after expire)
$schedule->call(function () {
$hooks = TwitchWebhook::where("disabled", false)->where("disabled_at", null)->whereDate("expires_at", "<=", Carbon::now()->addHours())->get();
$hooks = TwitchWebhook::where("disabled", false)->where("disabled_at", null)->whereDate("expires_at", "<=", Carbon::now()->addHour())->get();
foreach ($hooks as $hook) {
$subscription = Twitch::subscribeWebhook($hook->callback, $hook->type, WebhookController::MAX_LEASE_SECONDS);