diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 18:28:26 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 18:28:26 -0400 |
| commit | bb3d8da23279dc2e4cf275b08b03148b3980fb01 (patch) | |
| tree | 880f4885f3a0beeb21376438ec603b2e52d32edc /app/index.js | |
| parent | e2e9e4bb6a9e90687292961526a82ac881f2f3bb (diff) | |
Fix bug where views didn't resolve resource correctly
Diffstat (limited to 'app/index.js')
| -rw-r--r-- | app/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/index.js b/app/index.js index 0e83363..792c10a 100644 --- a/app/index.js +++ b/app/index.js @@ -152,7 +152,7 @@ OKCMS.prototype._createQueries = function(queryConfig, resourceCache) { queryConfig = [queryConfig]; return queryConfig.map(function(config) { var type = config.type; - var resource = resourceCache.get(type); + var resource = resourceCache.get(type, config.query); if (!resource) throw new Error('Query configured with nonexistent resource'); // Default to "select all" query |
