Merge pull request #10733 from turbo124/v5-develop

v5.11.51
This commit is contained in:
David Bomba 2025-03-05 08:27:01 +11:00 committed by GitHub
commit 12036e6eba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
5.11.50
5.11.51

View File

@ -180,12 +180,12 @@ class LicenseController extends BaseController
nlog("Ninja Server Response");
nlog($payload);
if ($response->successful()) {
if ($response->successful() && is_array($payload)) {
$account = auth()->user()->account;
$account->plan_term = Account::PLAN_TERM_YEARLY;
$account->plan_expires = Carbon::parse($payload['expires'])->addYear()->format('Y-m-d');
$account->plan_expires = Carbon::parse($payload['expires'])->format('Y-m-d');
$account->plan = Account::PLAN_WHITE_LABEL;
$account->save();

View File

@ -17,8 +17,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => env('APP_VERSION', '5.11.50'),
'app_tag' => env('APP_TAG', '5.11.50'),
'app_version' => env('APP_VERSION', '5.11.51'),
'app_tag' => env('APP_TAG', '5.11.51'),
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false),