Fixed misspelled method name
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user