mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-17 14:32:34 +08:00
Merge pull request #2121 from okriuchykhin/ok_SCI_3950
Skip missing files when cloning TinyMceAsset [SCI-3950]
This commit is contained in:
commit
c69e47de40
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…
Add table
Reference in a new issue