Skip to content

Commit

Permalink
Merge pull request #4393 from mkllnk/4392-rescue-network-fails
Browse files Browse the repository at this point in the history
Avoid asking the cloud if an image exists
  • Loading branch information
Matt-Yorkley authored Oct 23, 2019
2 parents 02c0b89 + ada34d2 commit 00e869f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/api/admin/enterprise_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def find_match(tag_groups, tags)
# # medium: LOGO_MEDIUM_URL
# # }
def attachment_urls(attachment, versions)
return unless attachment.exists?
return unless attachment.file?

versions.each_with_object({}) do |version, urls|
urls[version] = attachment.url(version)
Expand Down

0 comments on commit 00e869f

Please sign in to comment.