lms-sync 1.0.88 → 1.0.90

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.
@@ -66,6 +66,7 @@ const server = {
66
66
  temporaryPassword: 'P@ssw0rd123',
67
67
  firstName: 'Androi',
68
68
  lastName: 'Pamisaran',
69
+ adminScopes: [],
69
70
  createdAt: new Date(),
70
71
  updatedAt: new Date()
71
72
  };
@@ -1350,6 +1351,23 @@ const server = {
1350
1351
  await db.sequelize.query(`ALTER SEQUENCE ${db_schema}."AcademicYears__id_seq" RESTART WITH ${maxId + 1}`);
1351
1352
  await db.sequelize.query(`DROP FUNCTION IF EXISTS ${db_schema}."pg_temp.testfunc()"`);
1352
1353
 
1354
+
1355
+ let userDefPayload = {
1356
+ email: 'ccci_integrator@gmail.com',
1357
+ password: '$2a$12$Q.h3Q9IN6vsIxGBa/EgfOOABeXTcwxt4t9cu4nqAK.nczGRRtZJUS',
1358
+ temporaryPassword: 'P@ssw0rd123',
1359
+ firstName: 'Androi',
1360
+ lastName: 'Pamisaran',
1361
+ adminScopes: [],
1362
+ createdAt: new Date(),
1363
+ updatedAt: new Date()
1364
+ };
1365
+
1366
+ let [userDefault, createdUser] = await Users.findOrCreate({
1367
+ where: { email: userDefPayload.email },
1368
+ defaults: userDefPayload
1369
+ });
1370
+
1353
1371
  const acadYearApi = await api.AcademicYear()
1354
1372
  const userMail = await Users.findOne({ where: { email: 'ccci_integrator@gmail.com' } });
1355
1373
 
@@ -1485,6 +1503,23 @@ const server = {
1485
1503
  await db.sequelize.query(`ALTER SEQUENCE ${db_schema}."Semesters__id_seq" RESTART WITH ${maxId + 1}`);
1486
1504
  await db.sequelize.query(`DROP FUNCTION IF EXISTS ${db_schema}."pg_temp.testfunc()"`);
1487
1505
 
1506
+
1507
+ let userDefPayload = {
1508
+ email: 'ccci_integrator@gmail.com',
1509
+ password: '$2a$12$Q.h3Q9IN6vsIxGBa/EgfOOABeXTcwxt4t9cu4nqAK.nczGRRtZJUS',
1510
+ temporaryPassword: 'P@ssw0rd123',
1511
+ firstName: 'Androi',
1512
+ lastName: 'Pamisaran',
1513
+ adminScopes: [],
1514
+ createdAt: new Date(),
1515
+ updatedAt: new Date()
1516
+ };
1517
+
1518
+ let [userDefault, createdUser] = await Users.findOrCreate({
1519
+ where: { email: userDefPayload.email },
1520
+ defaults: userDefPayload
1521
+ });
1522
+
1488
1523
  const acadYearApi = await api.AcademicYear()
1489
1524
  const userMail = await Users.findOne({ where: { email: 'ccci_integrator@gmail.com' } });
1490
1525
 
package/login.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "email": "ictsc@mscmarinduque.edu.ph",
3
+ "password": "MjU8qweXLaFpDnEyfRrbY9",
4
+ "baseURL": "https://lms.api.msc.priisms.online/api"
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lms-sync",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "description": "Migration App for MSC LMS",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/target.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "host": "188.166.212.92",
3
+ "username": "migration",
4
+ "database": "migration",
5
+ "password": "Admin123",
6
+ "dialect": "postgres",
7
+ "schema": "public_migrations",
8
+ "logging": false
9
+ }