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

Patched `loadAdm` to recognized users and groups

parent b7584f94
# 1.1.1
- Patched `loadAdm` to recognized users and groups
......@@ -204,10 +204,16 @@ function loadCsvAsArray(fileName, startRow = 1, delimiter = ';') {
* @param {string} entityName
*/
function loadAdm(conn, dirName, entityName) {
const
lookupUser = dataLoader.lookup(conn, 'uba_user', 'name', 1),
lookupRole = dataLoader.lookup(conn, 'uba_role', 'name', 1),
lookupGroup = dataLoader.lookup(conn, 'uba_group', 'code', 1);
loadCsv(conn, dirName, entityName + '_adm', ['instanceID', 'admSubjID'],
[
dataLoader.lookup(conn, entityName, 'code', 0),
dataLoader.lookup(conn, 'uba_role', 'name', 1)
row => lookupRole(row) || lookupGroup(row) || lookupUser(row)
]
);
}
......
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