Skip to content

Commit

Permalink
fix: type of license code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Jul 14, 2023
1 parent 62247f4 commit ae6cc21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Actions/License/CheckResaleLicense.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit ae6cc21

Please sign in to comment.