Skip to content

Commit

Permalink
Removes flipper option for local bgs in supporting documents. (#19836)
Browse files Browse the repository at this point in the history
  • Loading branch information
stiehlrod authored Dec 16, 2024
1 parent 8477e7e commit f50efec
Showing 1 changed file with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,12 @@ def use_birls_id_file_number?
end

def find_by_ssn(ssn)
if Flipper.enabled? :claims_api_use_person_web_service
# rubocop:disable Rails/DynamicFindBy
ClaimsApi::PersonWebService.new(
external_uid: target_veteran.participant_id,
external_key: target_veteran.participant_id
).find_by_ssn(ssn)
else
ClaimsApi::LocalBGS.new(
external_uid: target_veteran.participant_id,
external_key: target_veteran.participant_id
).find_by_ssn(ssn)
# rubocop:enable Rails/DynamicFindBy
end
# rubocop:disable Rails/DynamicFindBy
ClaimsApi::PersonWebService.new(
external_uid: target_veteran.participant_id,
external_key: target_veteran.participant_id
).find_by_ssn(ssn)
# rubocop:enable Rails/DynamicFindBy
end
end
end
Expand Down

0 comments on commit f50efec

Please sign in to comment.