From 143e4e0d23bd279173e6122ca20f400bd2b63c5d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 6 Nov 2023 13:30:37 +0100 Subject: [PATCH] lol --- routes/webhooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/webhooks.php b/routes/webhooks.php index 2274ea0b3..e6a6a0af9 100644 --- a/routes/webhooks.php +++ b/routes/webhooks.php @@ -284,7 +284,7 @@ Route::post('/payments/stripe/events', function () { $customerId = data_get($data, 'customer'); $subscription = Subscription::where('stripe_customer_id', $customerId)->first(); if (!$subscription) { - Sleep::for(5)->minutes(); + Sleep::for(5)->seconds(); $subscription = Subscription::where('stripe_customer_id', $customerId)->firstOrFail(); } $planId = data_get($data, 'lines.data.0.plan.id');