From 8d99b17075e8545dd44428b811edc03d7c65fe91 Mon Sep 17 00:00:00 2001 From: Jesus Bermudez Velazquez Date: Thu, 7 Nov 2024 18:01:51 +0000 Subject: [PATCH] Add request to billing check The verification code will check the headers of @request object in order to access the content of SUMA headers to grant access Currently @request is nil coming from this code flow This add the request to the call --- .../instance_verification/billing_check_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/instance_verification/app/controllers/instance_verification/billing_check_controller.rb b/engines/instance_verification/app/controllers/instance_verification/billing_check_controller.rb index 9d00eee26..0217e54d7 100644 --- a/engines/instance_verification/app/controllers/instance_verification/billing_check_controller.rb +++ b/engines/instance_verification/app/controllers/instance_verification/billing_check_controller.rb @@ -5,7 +5,7 @@ def check # belongs to a PAYG or BYOS instance verification_provider = InstanceVerification.provider.new( logger, - nil, + request, nil, params[:metadata] )