fix find blob by checksum

This commit is contained in:
Pete Matsyburka
2026-07-07 09:50:11 +03:00
parent 8a60f17d13
commit b6fb7c6977
+7 -1
View File
@@ -305,7 +305,13 @@ module Submitters
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
end