lms-sync 1.0.74 → 1.0.75
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.
- package/apiConnections/mapping.js +16 -15
- package/package.json +1 -1
@@ -1943,21 +1943,6 @@ const server = {
|
|
1943
1943
|
await db.sequelize.query(`ALTER SEQUENCE ${db_schema}."Students__id_seq" RESTART WITH ${maxId + 1}`);
|
1944
1944
|
await db.sequelize.query(`DROP FUNCTION IF EXISTS ${db_schema}."pg_temp.testfunc()"`);
|
1945
1945
|
|
1946
|
-
let yearDefPayload = {
|
1947
|
-
from: 1799,
|
1948
|
-
to: 1800,
|
1949
|
-
modifiedById: userMail?._id,
|
1950
|
-
createdById: userMail?._id,
|
1951
|
-
default: false,
|
1952
|
-
}
|
1953
|
-
let [yeardef, createdyear] = await AcademicYears.findOrCreate({
|
1954
|
-
where: {
|
1955
|
-
from: yearDefPayload.from,
|
1956
|
-
to: yearDefPayload.to,
|
1957
|
-
},
|
1958
|
-
defaults: yearDefPayload
|
1959
|
-
});
|
1960
|
-
|
1961
1946
|
const studentApi = await api.Student()
|
1962
1947
|
|
1963
1948
|
const campusSeq = await Campuses.findAll()
|
@@ -1972,6 +1957,22 @@ const server = {
|
|
1972
1957
|
const collegeDefault = await Colleges.findOne({ where: { name: 'Colleges Default' } });
|
1973
1958
|
const yearDefault = await AcademicYears.findOne({ where: { from: 1799, to: 1800 } });
|
1974
1959
|
const semeDefault = await Semesters.findOne({ where: { code: '1st Semester' }});
|
1960
|
+
|
1961
|
+
|
1962
|
+
let yearDefPayload = {
|
1963
|
+
from: 1799,
|
1964
|
+
to: 1800,
|
1965
|
+
modifiedById: userMail?._id,
|
1966
|
+
createdById: userMail?._id,
|
1967
|
+
default: false,
|
1968
|
+
}
|
1969
|
+
let [yeardef, createdyear] = await AcademicYears.findOrCreate({
|
1970
|
+
where: {
|
1971
|
+
from: yearDefPayload.from,
|
1972
|
+
to: yearDefPayload.to,
|
1973
|
+
},
|
1974
|
+
defaults: yearDefPayload
|
1975
|
+
});
|
1975
1976
|
|
1976
1977
|
|
1977
1978
|
let createdCounter = 0
|