Skip to content

Commit

Permalink
reverts definitions change since this was fixed in another PR
Browse files Browse the repository at this point in the history
  • Loading branch information
rockwellwindsor-va committed Jan 17, 2025
1 parent 5e32b66 commit 58de957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module ClaimantService
##
# ContentionServiceBean
#
module ContentionService
module ContentionServiceBean
DEFINITION =
Bean.new(
path: 'ContentionService',
Expand All @@ -86,7 +86,7 @@ module ContentionService
module ContentionService
DEFINITION =
Service.new(
bean: ContentionService::DEFINITION,
bean: ContentionServiceBean::DEFINITION,
path: 'ContentionService'
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ def existing_contentions(claim, contention_id, special_issues)
def existing_special_issues(contention, special_issues = [])
contention[:special_issues] = [] if contention[:special_issues].blank?

# Let's just always know it is an array
contentions =
contention[:special_issues].is_a?(Hash) ? [contention[:special_issues]] : contention[:special_issues]
contentions = Array.wrap(contention[:special_issues])

unique_special_issues = (special_issues + contentions.pluck(:spis_tc)).uniq
unique_special_issues.map do |special_issue|
Expand Down

0 comments on commit 58de957

Please sign in to comment.