parent
efecffb72d
commit
476afc6a99
@ -67,7 +67,7 @@ export class CreateUser {
|
|||||||
* Optional.
|
* Optional.
|
||||||
*/
|
*/
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
groupId?: number[] | number
|
group?: number[] | number
|
||||||
|
|
||||||
//TODO: ProfilePics
|
//TODO: ProfilePics
|
||||||
|
|
||||||
@ -81,11 +81,11 @@ export class CreateUser {
|
|||||||
throw new UsernameOrEmailNeededError();
|
throw new UsernameOrEmailNeededError();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.groupId) {
|
if (this.group) {
|
||||||
if (!Array.isArray(this.groupId)) {
|
if (!Array.isArray(this.group)) {
|
||||||
this.groupId = [this.groupId]
|
this.group = [this.group]
|
||||||
}
|
}
|
||||||
const groupIDs: number[] = this.groupId
|
const groupIDs: number[] = this.group
|
||||||
let errors = 0
|
let errors = 0
|
||||||
const validateusergroups = async () => {
|
const validateusergroups = async () => {
|
||||||
let foundgroups = []
|
let foundgroups = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user