lms-sync 1.0.56 → 1.0.58
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,12 +608,12 @@ 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);
|
611
|
+
// console.log('maxIdsIns :>> ', maxIdsIns);
|
612
612
|
|
613
613
|
let maxId = maxIds|| 0;
|
614
614
|
let maxIdIns = maxIdsIns|| 0;
|
615
615
|
|
616
|
-
console.log('maxIdIns :>> ', maxIdIns);
|
616
|
+
// console.log('maxIdIns :>> ', maxIdIns);
|
617
617
|
|
618
618
|
await db.sequelize.query(`CREATE SEQUENCE IF NOT EXISTS ${db_schema}."Users__id_seq"`);
|
619
619
|
await db.sequelize.query(`ALTER SEQUENCE ${db_schema}."Users__id_seq" RESTART WITH ${maxId + 1}`);
|