@pextran/db 0.0.36 → 0.0.38

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": "@pextran/db",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "pextran DB Utilities",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -41,7 +41,7 @@
41
41
  "access": "restricted"
42
42
  },
43
43
  "dependencies": {
44
- "@pextran/core": "^0.0.46",
44
+ "@pextran/core": "^0.0.50",
45
45
  "jsonwebtoken": "^9.0.2",
46
46
  "pdf-lib": "^1.17.1"
47
47
  }
@@ -85,7 +85,8 @@ export async function getEmployeeClaims(prisma: IPrisma, tenantId: string, email
85
85
  select: {
86
86
  key: true,
87
87
  permissions: true,
88
- modules: true
88
+ modules: true,
89
+ portal: true
89
90
  }
90
91
  })
91
92
 
@@ -128,10 +129,12 @@ export async function getEmployeeClaims(prisma: IPrisma, tenantId: string, email
128
129
  roles: roles.map((r: RoleDTO) => r.key === employee.preferences?.activeRole ? ({
129
130
  role: r.key,
130
131
  permissions: r.permissions,
131
- modules: r.modules
132
+ modules: r.modules,
133
+ portal: r.portal
132
134
  }) : ({
133
135
  role: r.key,
134
- modules: r.modules
136
+ modules: r.modules,
137
+ portal: r.portal
135
138
  })),
136
139
  preferences: employee.preferences,
137
140
  profilePicture: employee.profilePicture,