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.
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lms-sync",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "Migration App for MSC LMS",
5
5
  "main": "index.js",
6
6
  "scripts": {