From e8a4e6238a63eb41df96adc9080f36be38fb7184 Mon Sep 17 00:00:00 2001 From: Maximilian Friedmann Date: Mon, 12 Sep 2016 12:00:03 +0200 Subject: [PATCH] removing unneded source code generation --- src/commands/generate.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/commands/generate.js b/src/commands/generate.js index 7db6791..17902d0 100644 --- a/src/commands/generate.js +++ b/src/commands/generate.js @@ -212,32 +212,6 @@ module.exports = function (params, done) { data.others = configuration; data.general = config; - // extending queries if byId and byIds are missing - // var byIdsName = genFunctions.getByIdsGetter(data.modelClassName); - // var byIdName = genFunctions.lowerCaseFirst(data.modelClassName) + "ById"; - - // var byIdsFound = _.find(data.config.service.queries, function (query) { return query.name === byIdsName; }) - // var byIdFound = _.find(data.config.service.queries, function (query) { return query.name === byIdName; }) - - // if (!byIdsFound) { - // if (data.config.service === undefined) - // data.config.service = {}; - // if (data.config.service.queries === undefined) - // data.config.service.queries = []; - // data.config.service.queries.push({ - // "name": byIdsName, - // "selector": { - // "_id": { $in: ":ids:string[]" } - // } - // }); - // } - // if (!byIdFound) - // data.config.service.queries.push({ - // "name": byIdName, - // "selector": { - // "_id": ":id:string" - // } - // }); // process collections if (data.config.collection.skipGeneration === true)