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,
|
example: 20,
|
||||||
})
|
})
|
||||||
@IsInt()
|
@IsInt()
|
||||||
@Min(0)
|
@Min(18)
|
||||||
@Max(120)
|
@Max(120)
|
||||||
age: number;
|
age: number;
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,7 @@ export class UserService {
|
|||||||
lastName: true,
|
lastName: true,
|
||||||
dollarAvailables: true,
|
dollarAvailables: true,
|
||||||
pseudo: true,
|
pseudo: true,
|
||||||
|
age: true,
|
||||||
UserHasCrypto: {
|
UserHasCrypto: {
|
||||||
select: {
|
select: {
|
||||||
Crypto: true,
|
Crypto: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user