lms-sync 1.0.56 → 1.0.58
Sign up to get free protection for your applications and to get access to all the features.
@@ -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}`);
|