fix: type of license code

This commit is contained in:
Andras Bacsai 2023-07-14 14:07:37 +02:00
parent 62247f4601
commit ae6cc21f10

View File

@ -23,8 +23,8 @@ public function __invoke()
'license_key' => $settings->resale_license,
'instance_name' => $instance_id,
])->throw()->json();
$product_id = data_get($data, 'meta.product_id');
$valid_product_id = config('coolify.lemon_squeezy_product_id');
$product_id = (int)data_get($data, 'meta.product_id');
$valid_product_id = (int)config('coolify.lemon_squeezy_product_id');
if ($product_id !== $valid_product_id) {
throw new \Exception('Invalid product id');
}