diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-13 17:57:17 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-13 17:57:17 -0400 |
| commit | 34f1ca02bea38e0b7ef185ebf07d3ec6df30f370 (patch) | |
| tree | 234b767a8fef77a7a29ff8d0f519ba462129cb92 /app/index.js | |
| parent | 3e255208a9776ad377f3b62d79d982138e89539a (diff) | |
split up the projects by category, add a schema flag so we can use the same singular template
Diffstat (limited to 'app/index.js')
| -rw-r--r-- | app/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/index.js b/app/index.js index 419adfc..7860f76 100644 --- a/app/index.js +++ b/app/index.js @@ -87,7 +87,6 @@ function OKCMS(options) { this._createResources(resourceConfig, db, schemas); var errorHandler = createErrorHandlerProducer( templateProvider, adminTemplateProvider, debug); - // Create view instances from config var views = this._views = this._createViews(viewConfig, db, meta, resourceCache, templateProvider, @@ -141,7 +140,7 @@ OKCMS.prototype._createResources = function(resourceConfig, db, schemaCache) { var type = config.type; var schema = schemaCache[type]; if (!schema) - throw new Error('Resource config references nonexistent schema'); + throw new Error('Resource config references nonexistent schema ' + type); var resource = OKResource({ type: type, db: db, @@ -244,7 +243,8 @@ OKCMS.prototype._createQueries = function(queryConfig, resourceCache) { var query = config.query || '*'; return new OKQuery({ resource: resource, - query: query + query: query, + as: config.as, }); }); }; |
