Update protocol timestamp on put_file

SCI-551 #close
This commit is contained in:
Jure Grabnar 2016-10-06 14:05:02 +02:00
parent 62356c36a1
commit b52e596209

View file

@ -207,6 +207,8 @@ class WopiController < ActionController::Base
@organization.take_space(@asset.estimated_size)
@organization.save
@protocol.update(updated_at: Time.now) if @protocol
response.headers['X-WOPI-ItemVersion'] = @asset.version
render nothing: :true, status: 200 and return
else