🚧 CreateUser - add group as object instead of nested array

This commit is contained in:
Philipp Dormann 2020-12-04 19:32:17 +01:00
parent d4753a02d4
commit a7cf86eae4

View File

@ -49,7 +49,7 @@ export class CreateUser {
if (found.length === 0) { if (found.length === 0) {
errors++ errors++
} else { } else {
foundgroups.push(found) foundgroups.push(found[0])
} }
} }
newUser.groups = foundgroups newUser.groups = foundgroups