fix: type of license code
This commit is contained in:
parent
62247f4601
commit
ae6cc21f10
@ -23,8 +23,8 @@ class CheckResaleLicense
|
|||||||
'license_key' => $settings->resale_license,
|
'license_key' => $settings->resale_license,
|
||||||
'instance_name' => $instance_id,
|
'instance_name' => $instance_id,
|
||||||
])->throw()->json();
|
])->throw()->json();
|
||||||
$product_id = data_get($data, 'meta.product_id');
|
$product_id = (int)data_get($data, 'meta.product_id');
|
||||||
$valid_product_id = config('coolify.lemon_squeezy_product_id');
|
$valid_product_id = (int)config('coolify.lemon_squeezy_product_id');
|
||||||
if ($product_id !== $valid_product_id) {
|
if ($product_id !== $valid_product_id) {
|
||||||
throw new \Exception('Invalid product id');
|
throw new \Exception('Invalid product id');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user