lms-sync 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/apiConnections/apiConnects.js +2 -2
- package/apiConnections/mapping.js +2 -1
- package/app.js +6 -1
- package/package.json +1 -1
@@ -227,7 +227,7 @@ const Apis = {
|
|
227
227
|
},
|
228
228
|
}
|
229
229
|
)
|
230
|
-
|
230
|
+
console.log('student.data :>> ', student.data);
|
231
231
|
return student.data
|
232
232
|
} catch (error) {
|
233
233
|
console.error('Student Api Error:', error);
|
@@ -251,7 +251,7 @@ const Apis = {
|
|
251
251
|
},
|
252
252
|
}
|
253
253
|
)
|
254
|
-
|
254
|
+
console.log('sectionResult.data :>> ', sectionResult.data);
|
255
255
|
return sectionResult.data
|
256
256
|
} catch (error) {
|
257
257
|
console.error('Student Api Error:', error);
|
package/app.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
const sequelizeStart = require('./apiConnections/sequelizeConnection');
|
4
4
|
const apiConnects = require('./apiConnections/apiConnects')
|
5
5
|
const mappings = require('./apiConnections/mapping');
|
6
|
-
|
6
|
+
const picks = require('./apiConnections/semesterPick')
|
7
7
|
|
8
8
|
async function start(){
|
9
9
|
try {
|
@@ -18,6 +18,11 @@ async function start(){
|
|
18
18
|
console.log('Connected to Sequelize.');
|
19
19
|
console.log(`Sequelize host:`, startSequel.config.host);
|
20
20
|
}
|
21
|
+
const picked = await picks.Picked()
|
22
|
+
if (picked){
|
23
|
+
console.log(`${picked.yearFrom} - ${picked.yearTo}, ${picked.semester}`)
|
24
|
+
}
|
25
|
+
|
21
26
|
if(apis && startSequel){
|
22
27
|
console.log('Both connections successful. Starting migrations...');
|
23
28
|
await mappings.Server()
|