Skip to content

Commit

Permalink
linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
afontainec committed Jun 17, 2020
1 parent 90bb905 commit e4b5de5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cliApp/intrepeter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const Router = require('./routes');
const Migration = require('./migrations');
let config = require('../.chainfile');
const configPath = require('./configPath');
const { table } = require('console');

let knexConfig;

Expand All @@ -24,12 +23,11 @@ const newMVC = (tableName, options) => {
Printer.error('Not valid model name');
return;
}
// const frontendType = getFrontendType(options);
// const backend = getBackend(options);
const frontendType = getFrontendType(options);
const backend = getBackend(options);
const values = getValues(tableName);
console.log(values);
// const promises = createFiles(frontendType, backend, tableName, values);
// Promise.all(promises).then().catch(() => { Printer.error('Error creating files'); });
const promises = createFiles(frontendType, backend, tableName, values);
Promise.all(promises).then().catch(() => { Printer.error('Error creating files'); });
};

const createFiles = (frontendType, backend, tableName, values) => {
Expand Down

0 comments on commit e4b5de5

Please sign in to comment.