From a7cf86eae41991956db6b48f8c70ed0d6cec374a Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Fri, 4 Dec 2020 19:32:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20CreateUser=20-=20add=20group=20a?= =?UTF-8?q?s=20object=20instead=20of=20nested=20array?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/creation/CreateUser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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