From b004019c8c00fb50295f94e1c6a2148f0bff66dc Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 25 Oct 2024 15:41:27 +0200 Subject: [PATCH] Update user_resource.rb --- app/models/subscription_server/user_resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/subscription_server/user_resource.rb b/app/models/subscription_server/user_resource.rb index 65c5c5e..048ae39 100644 --- a/app/models/subscription_server/user_resource.rb +++ b/app/models/subscription_server/user_resource.rb @@ -66,7 +66,7 @@ def self.list(user_id, subscriptions) elsif !user_resource.iam_access_key_id user_resource.rotate_iam_key end - if user_resource.iam_key_updated_at > 1.week.ago + if user_resource.iam_key_updated_at < 1.week.ago user_resource.rotate_iam_key end next unless user_resource.iam_ready?