rez_core 4.0.133 → 4.0.135

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "4.0.133",
3
+ "version": "4.0.135",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -40,8 +40,8 @@ export class AuthService {
40
40
  // Update the sso_user table
41
41
  await this.dataSource.query(
42
42
  `UPDATE sso_user_session
43
- SET fcm_token = ?, ip = ?, browser = ?, os = ?
44
- WHERE session_key = ? AND user_id = ? `,
43
+ SET fcm_token = $1, ip = $2, browser = $3, os = $4
44
+ WHERE session_key = $5 AND user_id = $6 `,
45
45
  [fcmtoken, ip, browser, os, sessionToken, userId],
46
46
  );
47
47
 
@@ -101,7 +101,7 @@ export class MenuRepository extends Repository<MenuData> {
101
101
  // Check if user has any role mappings for the given appcode
102
102
  const getUserDetails = await this.dataSource.query(
103
103
  `
104
- SELECT * from sso_user where id = ?
104
+ SELECT * from sso_user where id = $1
105
105
  `,
106
106
  [userId],
107
107
  );
@@ -110,7 +110,7 @@ export class MenuRepository extends Repository<MenuData> {
110
110
 
111
111
  const getUserUrm = await this.dataSource.query(
112
112
  `
113
- SELECT * from sso_user_role_mapping where user_id = ? and appcode = ?
113
+ SELECT * from sso_user_role_mapping where user_id = $1 and appcode = $2
114
114
  `,
115
115
  [userId, appcode],
116
116
  );
@@ -142,7 +142,7 @@ export class MenuRepository extends Repository<MenuData> {
142
142
  `
143
143
  SELECT s.brand_id, s.organization_id
144
144
  FROM sso_school s
145
- WHERE s.id = ?
145
+ WHERE s.id = $1
146
146
  `,
147
147
  [levelId],
148
148
  );