imports/server/exportimport/expImpUsers.js
Function preImportCheck
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static preImportCheck (db, msID) {
return new Promise((resolve, reject) => {
const mapFile = msID + ExpImpUsers.MAPNAME_POSTFIX;
let usrMap = undefined;
try {
Function doImport
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static doImport (db, msID, usrMap) {
return new Promise((resolve, reject) => {
const usrFile = msID + ExpImpUsers.FILENAME_POSTFIX;
let allUsersDoc = undefined;
try {
Function doExport
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static doExport (db, msID, userIDsFlat) {
return new Promise((resolve, reject) => {
userIDsFlat = Object.keys(userIDsFlat);
let userIDsOuputMap = {};