fix: force enable/disable server in case ultimate package quantity decreases

This commit is contained in:
Andras Bacsai committed 2024-02-26 10:25:21 +01:00
1 parent 453956172b
commit 678647f39a
25 files changed
+172 -68

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
use App\Enums\ProcessStatus;
use App\Jobs\ApplicationPullRequestUpdateJob;
use App\Jobs\GithubAppPermissionJob;
use App\Jobs\ServerOverflowJob;
use App\Jobs\ServerLimitCheckJob;
use App\Jobs\SubscriptionInvoiceFailedJob;
use App\Jobs\SubscriptionTrialEndedJob;
use App\Jobs\SubscriptionTrialEndsSoonJob;
@@ -883,7 +883,7 @@ Route::post('/payments/stripe/events', function () {
$team->update([
'custom_server_limit' => $quantity,
]);
ServerOverflowJob::dispatch($team);
ServerLimitCheckJob::dispatch($team);
}
$subscription->update([
'stripe_feedback' => $feedback,