Commit 8cdc5ca9 authored by Безуглый Андрей's avatar Безуглый Андрей
Browse files

Code formatting

parent 54bc97a3
# 3.0.1
CHANGED:
* Code formatting
# 3.0.0
CHANGED:
......
const
fs = require('fs'),
path = require('path'),
_ = require('lodash'),
dataLoader = require('@unitybase/base/dataLoader'),
csv = require('@unitybase/base/csv1');
const fs = require('fs');
const path = require('path');
const _ = require('lodash');
const dataLoader = require('@unitybase/base/dataLoader');
const csv = require('@unitybase/base/csv1');
const COMMON_UB_MODEL_PREFIX = 'ub_model_';
......@@ -58,7 +57,6 @@ function _doBuildDelegateCommand(functionNameColIndex, row) {
}
/**
* A helper function which finds a model name from "__dirname" value of a module.
* @param dirName
......@@ -140,7 +138,7 @@ function localize(session, dirname, filename) {
*/
function loadLocaleFromCsv(session, dirName, locale, entityName, attrs, keyAttrsCount = 1) {
console.log(`\t\tLocalizing "${entityName}" instances...`);
const
mapping = attrs.map((a, i) => i),
lang = path.basename(locale).split('^')[0],
......@@ -339,7 +337,7 @@ function buildCommand(cmdTypeColIndex, entityNameColIndex, fieldListColIndex, or
throw new Error(`Invalid command type: "${cmdType}"`);
}
}
return doBuildCommand.bind(null, cmdTypeColIndex,
entityNameColIndex, fieldListColIndex, orderByColIndex,
formCodeColIndex);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment