lms-sync 1.0.38 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
- package/apiConnections/mapping.js +12 -0
- package/package.json +1 -1
@@ -66,6 +66,18 @@ const server = {
|
|
66
66
|
defaults: userDefPayload
|
67
67
|
});
|
68
68
|
|
69
|
+
if (createdUser) {
|
70
|
+
logger.info(`New User record created ${createdCounter + 1}/${createdCounter + 1}: ${userDefault.email} `);
|
71
|
+
createdCounter++;
|
72
|
+
} else {
|
73
|
+
const errorMsg = `Record User Already Exists: ${userDefault.email} `;
|
74
|
+
if (!uniqueErrors.has(errorMsg)) {
|
75
|
+
logger.error(`${errorCounter + 1}/${errorCounter + 1}: ${errorMsg}`);
|
76
|
+
uniqueErrors.add(errorMsg);
|
77
|
+
errorCounter++;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
69
81
|
const userMail = await Users.findOne({ where: { email: 'ccci_integrator@gmail.com' } });
|
70
82
|
|
71
83
|
|