Skip to content

Commit

Permalink
[api][webui] Reload the Backend::File instance after saving with a
Browse files Browse the repository at this point in the history
content
  • Loading branch information
Moises Deniz Aleman committed Apr 19, 2017
1 parent 64bceb1 commit 803746b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/lib/backend/file.rb
Expand Up @@ -75,6 +75,7 @@ def save!(query = {}, content = nil)
backend_response = nil
if content
backend_response = Connection.put(full_path(query), content)
reload
else
@file.open
backend_response = Connection.put(full_path(query), @file)
Expand Down

0 comments on commit 803746b

Please sign in to comment.