Commit e78b62d0 by source_reader

backend fix for joule and regression for bcrypt library

parent 8e1682b6
Showing with 7 additions and 5 deletions
......@@ -50,7 +50,7 @@ GEM
arel (9.0.0)
ast (2.4.0)
backports (3.11.4)
bcrypt (3.1.13)
bcrypt (3.1.12)
bindex (0.5.0)
bootsnap (1.3.2)
msgpack (~> 1.0)
......
......@@ -142,12 +142,13 @@ module Joule
attrs = { name: db_stream.name,
description: db_stream.description,
elements: elements
}.to_json
}
begin
response = self.class.put("#{@url}/stream.json",
headers: { 'Content-Type' => 'application/json' },
body: {
id: db_stream.joule_id,
stream: attrs})
stream: attrs}.to_json)
rescue
return { error: true, msg: 'cannot contact Joule server' }
end
......@@ -159,12 +160,13 @@ module Joule
def update_folder(db_folder)
attrs = { name: db_folder.name,
description: db_folder.description}.to_json
description: db_folder.description}
begin
response = self.class.put("#{@url}/folder.json",
headers: { 'Content-Type' => 'application/json' },
body: {
id: db_folder.joule_id,
folder: attrs})
folder: attrs}.to_json)
rescue
return { error: true, msg: 'cannot contact Joule server' }
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment