diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index aba79fb..7e70908 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -33,7 +33,7 @@ class Kernel extends ConsoleKernel $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); + $subscription = Twitch::subscribeWebhook($hook->callback, $hook->topic, WebhookController::MAX_LEASE_SECONDS); if ($subscription->success) { $hook->expires_at = Carbon::now()->addSeconds(WebhookController::MAX_LEASE_SECONDS);