Fix file versioning for WOPI [SCI-11049]

This commit is contained in:
Martin Artnik 2024-10-08 12:50:07 +02:00
parent a5551b4b34
commit fb94790743

View file

@ -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