@hed-hog/core 0.0.172 → 0.0.173

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.
@@ -104,7 +104,7 @@ let DashboardComponentService = class DashboardComponentService {
104
104
  }
105
105
  async getComponent(id, locale, userId) {
106
106
  if (userId) {
107
- const userRoles = await this.prismaService.user_role.findMany({
107
+ const userRoles = await this.prismaService.role_user.findMany({
108
108
  where: { user_id: userId },
109
109
  select: { role_id: true },
110
110
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/core",
3
- "version": "0.0.172",
3
+ "version": "0.0.173",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -30,10 +30,10 @@
30
30
  "speakeasy": "^2.0.0",
31
31
  "uuid": "^11.1.0",
32
32
  "@hed-hog/api-locale": "0.0.11",
33
- "@hed-hog/types": "0.0.1",
34
33
  "@hed-hog/api-mail": "0.0.7",
35
- "@hed-hog/api-prisma": "0.0.4",
34
+ "@hed-hog/types": "0.0.1",
36
35
  "@hed-hog/api": "0.0.3",
36
+ "@hed-hog/api-prisma": "0.0.4",
37
37
  "@hed-hog/api-pagination": "0.0.5"
38
38
  },
39
39
  "exports": {
@@ -126,7 +126,7 @@ export class DashboardComponentService {
126
126
 
127
127
  async getComponent(id: number, locale: string, userId?: number) {
128
128
  if (userId) {
129
- const userRoles = await this.prismaService.user_role.findMany({
129
+ const userRoles = await this.prismaService.role_user.findMany({
130
130
  where: { user_id: userId },
131
131
  select: { role_id: true },
132
132
  });