diff options
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/check_gcp_project_billing_worker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/check_gcp_project_billing_worker.rb b/app/workers/check_gcp_project_billing_worker.rb index 5c3a4ff4a35..8d80f9c9be3 100644 --- a/app/workers/check_gcp_project_billing_worker.rb +++ b/app/workers/check_gcp_project_billing_worker.rb @@ -11,9 +11,9 @@ class CheckGcpProjectBillingWorker return unless token return unless try_obtain_lease_for(token) - billing_enabled = CheckGcpProjectBillingService.new.execute(token) + billing_enabled_projects = CheckGcpProjectBillingService.new.execute(token) Gitlab::Redis::SharedState.with do |redis| - redis.set(self.class.redis_shared_state_key_for(token), billing_enabled) + redis.set(self.class.redis_shared_state_key_for(token), !billing_enabled_projects.empty?) end end |