lms-sync 1.0.55 → 1.0.57

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lms-sync",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "description": "Migration App for MSC LMS",
5
5
  "main": "index.js",
6
6
  "scripts": {