fix(clone): on procedure clone, discard integrity error
This commit is contained in:
parent
2201114028
commit
52b7886961
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ class Procedure < ApplicationRecord
|
||||||
procedure = self.deep_clone(include: include_list) do |original, kopy|
|
procedure = self.deep_clone(include: include_list) do |original, kopy|
|
||||||
begin
|
begin
|
||||||
PiecesJustificativesService.clone_attachments(original, kopy)
|
PiecesJustificativesService.clone_attachments(original, kopy)
|
||||||
rescue ActiveStorage::FileNotFoundError
|
rescue ActiveStorage::FileNotFoundError, ActiveStorage::IntegrityError
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
procedure.path = SecureRandom.uuid
|
procedure.path = SecureRandom.uuid
|
||||||
|
|
Loading…
Add table
Reference in a new issue