Skip to content

Commit

Permalink
IIIF #54 - Fixing a bug in the "set_content_type" rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed May 8, 2024
1 parent b7d556a commit 3c5d342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/triple_eye_effable/cloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def headers
end

def parse_response(response)
return nil unless response && response['resource'].present?
return [] unless response && response['resource'].present?

data = response['resource'].symbolize_keys.slice(*RESPONSE_KEYS)
[data[:uuid], data.except(:uuid)]
Expand Down
3 changes: 2 additions & 1 deletion lib/tasks/triple_eye_effable_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ namespace :triple_eye_effable do

query.find_each do |resourceable|
resource_id, data = service.download_resource(resourceable)
content_type = data[:content_type]
next if data.nil?

content_type = data[:content_type]
next if content_type.nil?

resource_description = resourceable.resource_description
Expand Down

0 comments on commit 3c5d342

Please sign in to comment.