Skip to content

Commit

Permalink
Fix for fetch_sensitivity_level
Browse files Browse the repository at this point in the history
  • Loading branch information
youfoundmanesh committed Dec 2, 2024
1 parent 78b00eb commit a9d46a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/external_api/bgs_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit a9d46a4

Please sign in to comment.