Minor fixes

This commit is contained in:
David Bomba 2023-03-06 13:15:11 +11:00
parent 7d871edd4e
commit 2f3b0e51f0
2 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,8 @@ class SubdomainController extends BaseController
'lb', 'lb',
'shopify', 'shopify',
'beta', 'beta',
'prometh' 'prometh',
'license',
]; ];
public function __construct() public function __construct()

View File

@ -64,7 +64,7 @@ class Ninja
'license' => config('ninja.license'), 'license' => config('ninja.license'),
]; ];
$data = trim(CurlUtils::post('https://license.invoiceninja.com/api/check', $data)); $data = trim(CurlUtils::post('https://license.invoicing.co/api/check', $data));
$data = json_decode($data); $data = json_decode($data);
if ($data && property_exists($data, 'message') && $data->message == sha1(config('ninja.license'))) { if ($data && property_exists($data, 'message') && $data->message == sha1(config('ninja.license'))) {