From 03f3369cd7bfb17c5c6d24bb5504d216f3487dbb Mon Sep 17 00:00:00 2001 From: Denis Lugowski Date: Fri, 3 Oct 2025 09:23:50 +0200 Subject: [PATCH] fix(frontend): Remove unnecessary role when creating user --- legalconsenthub/composables/auth/useAuthActions.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/legalconsenthub/composables/auth/useAuthActions.ts b/legalconsenthub/composables/auth/useAuthActions.ts index 00f0063..f3dab28 100644 --- a/legalconsenthub/composables/auth/useAuthActions.ts +++ b/legalconsenthub/composables/auth/useAuthActions.ts @@ -1,5 +1,4 @@ import type { FormSubmitEvent } from '@nuxt/ui' -import { UserRole } from '~/.api-client' import type { SignInSchema, SignUpSchema } from '~/types/schemas' import type { RouteLocationRaw } from 'vue-router' import { useAuthClient } from '~/composables/auth/useAuthClient' @@ -48,8 +47,7 @@ export function useAuthActions() { await createUser({ id: ctx.data.user.id, name: ctx.data.user.name, - status: 'ACTIVE', - role: UserRole.Employee + status: 'ACTIVE' }) console.log('User created in backend successfully') } catch (error) {