mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +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
|
end
|
||||||
|
|
||||||
def update_contents(new_file)
|
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
|
self.version = version.nil? ? 1 : version + 1
|
||||||
save
|
save
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue