Skip to content

Beautiful Open-Source Form Builder

Set user when upgrading from AppSumo

Julien Nahum9e2bf1c2802a
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 @@ class AppSumoController extends Controller
'status' => License::STATUS_ACTIVE,
]);
$license->meta = $licenseData;
+ $license->user_id = $licenseData['user_id'] ?? null;
$license->save();
Log::info('[APPSUMO] creating new license',