File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ def rpc_workspaces
285
285
res [ :workspaces ] = [ ]
286
286
self . framework . db . workspaces . each do |j |
287
287
ws = { }
288
+ ws [ :id ] = j . id
288
289
ws [ :name ] = j . name
289
290
ws [ :created_at ] = j . created_at . to_i
290
291
ws [ :updated_at ] = j . updated_at . to_i
@@ -295,7 +296,7 @@ def rpc_workspaces
295
296
296
297
def rpc_current_workspace
297
298
db_check
298
- { "workspace" => self . framework . db . workspace . name }
299
+ { "workspace" => self . framework . db . workspace . name , "workspace_id" => self . framework . db . workspace . id }
299
300
end
300
301
301
302
def rpc_get_workspace ( wspace )
@@ -306,6 +307,7 @@ def rpc_get_workspace(wspace)
306
307
if ( wspace )
307
308
w = { }
308
309
w [ :name ] = wspace . name
310
+ w [ :id ] = wspace . id
309
311
w [ :created_at ] = wspace . created_at . to_i
310
312
w [ :updated_at ] = wspace . updated_at . to_i
311
313
ret [ :workspace ] << w
You can’t perform that action at this time.
0 commit comments