Skip to content

Commit

Permalink
Add fetchAll to grab all docs in workspace as an obj
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafcole committed Jan 13, 2017
1 parent ff0eaa6 commit efe95ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime/eveSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ export function pack() {
return `var _workspaceCache = ${JSON.stringify(packaged, null, 2)};\n`;
}

export function fetchAll(workspace:string) {
return fetchWorkspace(workspace);
}

// If we're running on the client, load the server's workspaces from the cache it passes us.
if(global["_workspaceCache"]) {
for(let workspace in global["_workspaceCache"]) {
Expand Down

0 comments on commit efe95ec

Please sign in to comment.