lms-sync 1.0.9 → 1.0.10

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.
@@ -227,7 +227,7 @@ const Apis = {
227
227
  },
228
228
  }
229
229
  )
230
- // console.log('student.data :>> ', student.data);
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
- // console.log('sectionResult.data :>> ', sectionResult.data);
254
+ console.log('sectionResult.data :>> ', sectionResult.data);
255
255
  return sectionResult.data
256
256
  } catch (error) {
257
257
  console.error('Student Api Error:', error);
@@ -1386,5 +1386,6 @@ async function runServerFunctions() {
1386
1386
 
1387
1387
  module.exports = {
1388
1388
  Server: runServerFunctions,
1389
- Enrolled: server.EnrolledStudent
1389
+ Enrolled: server.EnrolledStudent,
1390
+ Section: server.Section
1390
1391
  }
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()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lms-sync",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Migration App for MSC LMS",
5
5
  "main": "index.js",
6
6
  "scripts": {