mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Skip missing files when clonning TinyMceAsset [SCI-3950]
This commit is contained in:
parent
afecc3fd0e
commit
bab228e1df
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ module TinyMceImages
|
|||
def clone_tinymce_assets(target, team)
|
||||
cloned_img_ids = []
|
||||
tiny_mce_assets.each do |tiny_img|
|
||||
next unless tiny_img.image.service.exist?(tiny_img.image.blob.key)
|
||||
|
||||
tiny_img_clone = TinyMceAsset.create(
|
||||
estimated_size: tiny_img.estimated_size,
|
||||
object: target,
|
||||
|
|
Loading…
Reference in a new issue