lms-sync 1.0.9 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/apiConnections/mapping.js +2 -1
- package/app.js +6 -1
- package/package.json +1 -1
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()
|