Skip to content

Commit

Permalink
removing unneded source code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Friedmann committed Sep 12, 2016
1 parent b8d3c27 commit e8a4e62
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/commands/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e8a4e62

Please sign in to comment.