summaryrefslogtreecommitdiff
path: root/app/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/index.js')
-rw-r--r--app/index.js2
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