@things-factory/auth-base 6.1.181 → 6.1.185

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": "@things-factory/auth-base",
3
- "version": "6.1.181",
3
+ "version": "6.1.185",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -30,10 +30,10 @@
30
30
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
31
31
  },
32
32
  "dependencies": {
33
- "@things-factory/email-base": "^6.1.181",
33
+ "@things-factory/email-base": "^6.1.182",
34
34
  "@things-factory/env": "^6.1.175",
35
- "@things-factory/i18n-base": "^6.1.181",
36
- "@things-factory/shell": "^6.1.181",
35
+ "@things-factory/i18n-base": "^6.1.182",
36
+ "@things-factory/shell": "^6.1.182",
37
37
  "@things-factory/utils": "^6.1.181",
38
38
  "jsonwebtoken": "^9.0.0",
39
39
  "koa-passport": "^6.0.0",
@@ -42,5 +42,5 @@
42
42
  "passport-jwt": "^4.0.0",
43
43
  "passport-local": "^1.0.0"
44
44
  },
45
- "gitHead": "006ae84bfda014619469d0ad7eab0e18682578f3"
45
+ "gitHead": "b6793ed8361e9fc5a4776fb48010007960ffdec8"
46
46
  }
@@ -329,8 +329,8 @@ export class User {
329
329
  FROM "users_roles" "UR"
330
330
  INNER JOIN "roles_privileges" "RP" ON "UR"."roles_id" = "RP"."roles_id"
331
331
  LEFT JOIN "roles" "R" ON "R"."id" = "UR"."roles_id"
332
- WHERE "UR"."users_id" = '78363c56-f0de-42bb-b17d-5188131cbaed'
333
- AND "R"."domain_id" = 'f51615aa-7093-40d4-898d-534a03f4428c'
332
+ WHERE "UR"."users_id" = '${user.id}'
333
+ AND "R"."domain_id" = '${domain.id}'
334
334
  )`)
335
335
 
336
336
  return result