mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 14:00:12 +02:00
added min age on register and user age in my-assets
This commit is contained in:
parent
88f2f7f308
commit
f31d901004
@ -88,7 +88,7 @@ export class AuthRegisterDto {
|
||||
example: 20,
|
||||
})
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
@Min(18)
|
||||
@Max(120)
|
||||
age: number;
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ export class UserService {
|
||||
lastName: true,
|
||||
dollarAvailables: true,
|
||||
pseudo: true,
|
||||
age: true,
|
||||
UserHasCrypto: {
|
||||
select: {
|
||||
Crypto: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user