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/dist/module/auth/services/auth.service.js +2 -2
- package/dist/module/auth/services/auth.service.js.map +1 -1
- package/dist/module/module/repository/menu.repository.js +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/auth/services/auth.service.ts +2 -2
- package/src/module/module/repository/menu.repository.ts +3 -3
package/package.json
CHANGED
|
@@ -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 =
|
|
44
|
-
WHERE session_key =
|
|
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 =
|
|
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
|
);
|