Skip to content

Commit

Permalink
Update content_store_hash calls in specialist document model
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Mar 4, 2025
1 parent c3c045a commit 167df9b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/models/specialist_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ class SpecialistDocument < ContentItem
def initialize(content_store_response)
super(content_store_response)

@continuation_link = content_store_hash.dig("details", "metadata", "continuation_link")
@metadata = content_store_hash["details"]["metadata"]
@protection_type = content_store_hash.dig("details", "metadata", "protection_type")
@will_continue_on = content_store_hash.dig("details", "metadata", "will_continue_on")
@continuation_link = content_store_response.dig("details", "metadata", "continuation_link")
@metadata = content_store_response["details"]["metadata"]
@protection_type = content_store_response.dig("details", "metadata", "protection_type")
@will_continue_on = content_store_response.dig("details", "metadata", "will_continue_on")

@headers = headers_list(content_store_hash.dig("details", "headers"))
@headers = headers_list(content_store_response.dig("details", "headers"))
end

def facet_values
Expand Down Expand Up @@ -40,7 +40,7 @@ def facet_values
end

def finder
@finder ||= Finder.new(content_store_hash.dig("links", "finder", 0))
@finder ||= Finder.new(content_store_response.dig("links", "finder", 0))
end

def protection_type_image
Expand Down

0 comments on commit 167df9b

Please sign in to comment.