diff --git a/src/models/creation/CreateUser.ts b/src/models/creation/CreateUser.ts index 5660227..4bd8cd4 100644 --- a/src/models/creation/CreateUser.ts +++ b/src/models/creation/CreateUser.ts @@ -49,7 +49,7 @@ export class CreateUser { if (found.length === 0) { errors++ } else { - foundgroups.push(found) + foundgroups.push(found[0]) } } newUser.groups = foundgroups