fix bugs in filling enums

parent bbeefad8
......@@ -24,12 +24,7 @@ module.exports = function(session){
conn.Repository('ubm_enum').where('code', '=', row[1]).ubql().whereList
)
)
if(!notExisted){
console.info('\t\tFill enumeration for RequestList model');
dataLoader.loadArrayData(conn, notExisted, 'ubm_enum', 'eGroup;code;name;sortOrder'.split(';'), [0, 1, 2, 3]);
}
else {
console.info('\t\tall records are existing in DB (ubm_enum)');
}
};
\ No newline at end of file
......@@ -25,12 +25,7 @@ module.exports = function(session){
conn.Repository('req_depart').where('name', '=', row[0]).ubql().whereList
)
)
if(!notExisted){
console.info('\t\tFill Departments field (req_depart)');
dataLoader.loadArrayData(conn, notExisted, 'req_depart', 'name;postAddr;phoneNum'.split(';'), [0,1,2], 1);
}
else {
console.info('\t\tall records are existing in DB (req_depart)');
}
};
\ No newline at end of file
......@@ -12,6 +12,7 @@
"author": "Olga Sedeneva",
"license": "ISC",
"dependencies": {
"@ub-e/ube-pub": "^4.1.6",
"@unitybase/adminui-pub": "^4.2.12",
"@unitybase/ubq": "^4.2.0"
},
......
......@@ -60,6 +60,12 @@
"path": "./node_modules/@unitybase/adminui-reg",
"moduleName": "@unitybase/adminui-reg"
},
{
"name": "UBE",
"publicPath": "./node_modules/@ub-e/ube-pub",
"path": "_public_only_",
"moduleName": "@ub-e/ube-pub"
},
{
"name": "RequestList", //The model which has been created
"path": "./models/requests" //path to the created our model
......
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