lms-sync 1.0.36 → 1.0.37

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.
@@ -51,18 +51,20 @@ const server = {
51
51
  await db.sequelize.query(`CREATE SEQUENCE IF NOT EXISTS ${db_schema}."Semesters__id_seq"`);
52
52
  await db.sequelize.query(`ALTER SEQUENCE ${db_schema}."Semesters__id_seq" RESTART WITH ${maxIdSems + 1}`);
53
53
 
54
- // let userDefPayload = {
55
- // email: 'ccci_integrator@gmail.com',
56
- // password: '$2a$12$Q.h3Q9IN6vsIxGBa/EgfOOABeXTcwxt4t9cu4nqAK.nczGRRtZJUS',
57
- // temporaryPassword: 'P@ssw0rd123',
58
- // firstName: 'Androi',
59
- // lastName: 'Pamisaran',
60
- // };
54
+ let userDefPayload = {
55
+ email: 'ccci_integrator@gmail.com',
56
+ password: '$2a$12$Q.h3Q9IN6vsIxGBa/EgfOOABeXTcwxt4t9cu4nqAK.nczGRRtZJUS',
57
+ temporaryPassword: 'P@ssw0rd123',
58
+ firstName: 'Androi',
59
+ lastName: 'Pamisaran',
60
+ createdAt: new Date(),
61
+ updatedAt: new Date()
62
+ };
61
63
 
62
- // let [userDefault, createdUser] = await Users.findOrCreate({
63
- // where: { email: userDefPayload.email },
64
- // defaults: userDefPayload
65
- // });
64
+ let [userDefault, createdUser] = await Users.findOrCreate({
65
+ where: { email: userDefPayload.email },
66
+ defaults: userDefPayload
67
+ });
66
68
 
67
69
  const userMail = await Users.findOne({ where: { email: 'ccci_integrator@gmail.com' } });
68
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lms-sync",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Migration App for MSC LMS",
5
5
  "main": "index.js",
6
6
  "scripts": {