lms-sync 1.0.89 → 1.0.91

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.
@@ -1351,6 +1351,23 @@ const server = {
1351
1351
  await db.sequelize.query(`ALTER SEQUENCE ${db_schema}."AcademicYears__id_seq" RESTART WITH ${maxId + 1}`);
1352
1352
  await db.sequelize.query(`DROP FUNCTION IF EXISTS ${db_schema}."pg_temp.testfunc()"`);
1353
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
+
1354
1371
  const acadYearApi = await api.AcademicYear()
1355
1372
  const userMail = await Users.findOne({ where: { email: 'ccci_integrator@gmail.com' } });
1356
1373
 
@@ -1486,6 +1503,23 @@ const server = {
1486
1503
  await db.sequelize.query(`ALTER SEQUENCE ${db_schema}."Semesters__id_seq" RESTART WITH ${maxId + 1}`);
1487
1504
  await db.sequelize.query(`DROP FUNCTION IF EXISTS ${db_schema}."pg_temp.testfunc()"`);
1488
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
+
1489
1523
  const acadYearApi = await api.AcademicYear()
1490
1524
  const userMail = await Users.findOne({ where: { email: 'ccci_integrator@gmail.com' } });
1491
1525
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lms-sync",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "Migration App for MSC LMS",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/login.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "email": "ictsc@mscmarinduque.edu.ph",
3
- "password": "MjU8qweXLaFpDnEyfRrbY9",
4
- "baseURL": "https://lms.api.msc.priisms.online/api"
5
- }
package/target.json DELETED
@@ -1,9 +0,0 @@
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
- }