feat: add admin tests read and update endpoints
This commit is contained in:
@@ -23,7 +23,7 @@ export class PhoneDTO {
|
||||
}),
|
||||
})
|
||||
@Transform(({ value }) => Utils.StringUtils.normalizePhone(value as string))
|
||||
phone: string;
|
||||
phone!: string;
|
||||
}
|
||||
|
||||
export class LoginDTO extends PhoneDTO {
|
||||
|
||||
@@ -3,5 +3,5 @@ import { IsNotEmpty, IsString } from 'class-validator';
|
||||
export class RefreshTokenDTO {
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
refreshToken: string;
|
||||
refreshToken!: string;
|
||||
}
|
||||
|
||||
@@ -9,5 +9,5 @@ export class VerifyOtpDTO extends PhoneDTO {
|
||||
field: '$t(auth.fields.otp)',
|
||||
}),
|
||||
})
|
||||
otp: string;
|
||||
otp!: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user