mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
store original doc uuid in metadata
This commit is contained in:
1 parent
92f8901a67
commit
345fe674d4
2 files changed
+14
-9
No files matched your search
+2
-1
@@ -24,7 +24,8 @@ module Submitters
|
||||
is_more_than_two_images = original_documents.count(&:image?) > 1
|
||||
|
||||
submitter.documents.preload(:blob).reject do |attachment|
|
||||
is_more_than_two_images && original_documents.find { |a| a.uuid == attachment.uuid }&.image?
|
||||
is_more_than_two_images &&
|
||||
original_documents.find { |a| a.uuid == (attachment.metadata['original_uuid'] || attachment.uuid) }&.image?
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user