From f31d901004096587ef3dbf49c9b52d7e24236d0e Mon Sep 17 00:00:00 2001 From: Kevsl Date: Thu, 13 Jun 2024 15:28:11 +0200 Subject: [PATCH] added min age on register and user age in my-assets --- src/auth/dto/auth.register.dto.ts | 2 +- src/user/user.service.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth/dto/auth.register.dto.ts b/src/auth/dto/auth.register.dto.ts index dc65a93..5b133de 100644 --- a/src/auth/dto/auth.register.dto.ts +++ b/src/auth/dto/auth.register.dto.ts @@ -88,7 +88,7 @@ export class AuthRegisterDto { example: 20, }) @IsInt() - @Min(0) + @Min(18) @Max(120) age: number; } diff --git a/src/user/user.service.ts b/src/user/user.service.ts index 0147856..3d52479 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -18,6 +18,7 @@ export class UserService { lastName: true, dollarAvailables: true, pseudo: true, + age: true, UserHasCrypto: { select: { Crypto: true,