mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-15 12:01:47 +08:00
Fix file versioning for WOPI [SCI-11049]
This commit is contained in:
parent
a5551b4b34
commit
fb94790743
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ class Asset < ApplicationRecord
|
|||
end
|
||||
|
||||
def update_contents(new_file)
|
||||
file.attach_file_version(io: new_file, filename: file_name)
|
||||
attach_file_version(io: new_file, filename: file_name)
|
||||
self.version = version.nil? ? 1 : version + 1
|
||||
save
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue