From 9e2bf1c2802a6b986cbf43d5ff0ad5f4f432426f Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Wed, 8 Nov 2023 22:18:22 +0100 Subject: [PATCH] Set user when upgrading from AppSumo --- app/Http/Controllers/Webhook/AppSumoController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Webhook/AppSumoController.php b/app/Http/Controllers/Webhook/AppSumoController.php index c4fd44b09..dfd0375fe 100644 --- a/app/Http/Controllers/Webhook/AppSumoController.php +++ b/app/Http/Controllers/Webhook/AppSumoController.php @@ -66,6 +66,7 @@ private function createLicense(array $licenseData): License 'status' => License::STATUS_ACTIVE, ]); $license->meta = $licenseData; + $license->user_id = $licenseData['user_id'] ?? null; $license->save(); Log::info('[APPSUMO] creating new license',