fix find blob by checksum

pull/698/merge
Pete Matsyburka 4 weeks ago
parent 8a60f17d13
commit b6fb7c6977

@ -305,7 +305,13 @@ module Submitters
return unless blob return unless blob
return blob if blob.attachments.take&.record&.account_id == account.id attachment = blob.attachments.take
return if attachment.nil? ||
attachment.record_type != 'Submitter' ||
attachment.name != 'attachments'
return blob if attachment.record&.account_id == account.id
nil nil
end end

Loading…
Cancel
Save