lms-sync 1.0.9 → 1.0.11

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.
@@ -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.11",
4
4
  "description": "Migration App for MSC LMS",
5
5
  "main": "index.js",
6
6
  "scripts": {