From a9d46a4a616bbce6e6bce03012577a411e56dc5a Mon Sep 17 00:00:00 2001 From: youfoundmanesh <129548081+youfoundmanesh@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:52:04 -0500 Subject: [PATCH] Fix for fetch_sensitivity_level --- app/services/external_api/bgs_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/external_api/bgs_service.rb b/app/services/external_api/bgs_service.rb index a1e5bdfe4..8ce08cdb3 100644 --- a/app/services/external_api/bgs_service.rb +++ b/app/services/external_api/bgs_service.rb @@ -42,7 +42,7 @@ def sensitivity_level_for_user(user) validate_user(user) Rails.cache.fetch(cache_key_for_user(user), expires_in: 1.hour) do - fetch_sensitivity_level(user) + fetch_sensitivity_level_for_user(user) end end @@ -285,7 +285,7 @@ def cache_key_for_user(user) "sensitivity_level_for_user_id_#{user.id}" end - def fetch_sensitivity_level(user) + def fetch_sensitivity_level_for_user(user) participant_id = user.participant_id MetricsService.record(