@things-factory/auth-base 6.0.54 → 6.0.58

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.0.54",
3
+ "version": "6.0.58",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -28,10 +28,10 @@
28
28
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
29
29
  },
30
30
  "dependencies": {
31
- "@things-factory/email-base": "^6.0.49",
31
+ "@things-factory/email-base": "^6.0.58",
32
32
  "@things-factory/env": "^6.0.49",
33
- "@things-factory/i18n-base": "^6.0.49",
34
- "@things-factory/shell": "^6.0.49",
33
+ "@things-factory/i18n-base": "^6.0.58",
34
+ "@things-factory/shell": "^6.0.58",
35
35
  "@things-factory/utils": "^6.0.49",
36
36
  "jsonwebtoken": "^8.5.1",
37
37
  "koa-passport": "^4.1.4",
@@ -41,5 +41,5 @@
41
41
  "passport-jwt": "^4.0.0",
42
42
  "passport-local": "^1.0.0"
43
43
  },
44
- "gitHead": "5ffd411868ed85ea8d6580e6299ad5d54104e1c4"
44
+ "gitHead": "c68aa34916460226aa3116aeefb525b69afdad80"
45
45
  }
@@ -23,7 +23,7 @@ export class GrantedRoleMutation {
23
23
  // Check if current domain has partnership with passed `customer`
24
24
  const customerDomain: Domain = await tx.getRepository(Domain).findOneBy({ id: customerId })
25
25
  const customer: Partner = await tx.getRepository(Partner).findOne({
26
- where: { domain: { id: domain.id }, partnerDomain: customerDomain }
26
+ where: { domain: { id: domain.id }, partnerDomain: { id: customerDomain.id } }
27
27
  })
28
28
 
29
29
  if (!customer) throw new Error(`Failed to find partnership with customer`)
@@ -35,8 +35,8 @@ export class GrantedRoleMutation {
35
35
  }
36
36
 
37
37
  // Insert newly granted roles
38
- await tx.getRepository(Role).findBy({
39
- id: In(roles.map((role: Partial<Role>) => role.id))
38
+ await tx.getRepository(Role).findBy({
39
+ id: In(roles.map((role: Partial<Role>) => role.id))
40
40
  })
41
41
  const newlyGrantedRoles: Partial<GrantedRole>[] = roles.map((role: Role) => {
42
42
  return {