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.
- package/apiConnections/mapping.js +13 -11
- package/package.json +1 -1
@@ -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
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
63
|
-
|
64
|
-
|
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
|
|