From 58dfc3409f2aa79605b15def4804e2787c9e1ead Mon Sep 17 00:00:00 2001 From: Milan Andric Date: Mon, 20 Oct 2014 22:23:19 -0200 Subject: [PATCH] replaced schema attribute with meta. #4 This makes more app info available and the schema is typically found at `meta.config.settings_schema`. --- app-settings/shows.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app-settings/shows.js b/app-settings/shows.js index 35fe422..a2dc16a 100644 --- a/app-settings/shows.js +++ b/app-settings/shows.js @@ -20,7 +20,6 @@ exports.app_settings = function(ddoc, req) { var settings = (ddoc && ddoc.app_settings) || {}, meta = ddoc.kanso || ddoc.couchapp, - schema = meta && meta.config && meta.config.settings_schema, path = req.query.objectpath; if (path) { @@ -30,7 +29,7 @@ exports.app_settings = function(ddoc, req) { return { body: JSON.stringify({ settings: settings, - schema: schema + meta: meta }), headers: { 'Content-Type': 'application/json;charset=utf-8'