lms-sync 1.0.54 → 1.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -608,9 +608,13 @@ const server = {
608
608
  let maxIds = await Users.max('_id'); //Fetch maximum _id directly from the Users model
609
609
  let maxIdsIns = await Instructors.max('_id'); //Fetch maximum _id directly from the Users model
610
610
 
611
+ console.log('maxIdsIns :>> ', maxIdsIns);
612
+
611
613
  let maxId = maxIds|| 0;
612
614
  let maxIdIns = maxIdsIns|| 0;
613
615
 
616
+ console.log('maxIdIns :>> ', maxIdIns);
617
+
614
618
  await db.sequelize.query(`CREATE SEQUENCE IF NOT EXISTS ${db_schema}."Users__id_seq"`);
615
619
  await db.sequelize.query(`ALTER SEQUENCE ${db_schema}."Users__id_seq" RESTART WITH ${maxId + 1}`);
616
620
 
@@ -2450,11 +2454,6 @@ async function runServerFunctions() {
2450
2454
  console.log("########################################################");
2451
2455
  }
2452
2456
 
2453
-
2454
-
2455
-
2456
- // module.exports = server
2457
-
2458
2457
  module.exports = {
2459
2458
  serverTable: server,
2460
2459
  Campus: server.Campus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lms-sync",
3
- "version": "1.0.54",
3
+ "version": "1.0.56",
4
4
  "description": "Migration App for MSC LMS",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/recordSuccess.log CHANGED
@@ -1 +0,0 @@
1
-