diff --git a/src/crypto/dto/crypto.dto.ts b/src/crypto/dto/crypto.dto.ts index 9bbc55a..5b9fdb8 100644 --- a/src/crypto/dto/crypto.dto.ts +++ b/src/crypto/dto/crypto.dto.ts @@ -1,5 +1,5 @@ import { ApiProperty } from '@nestjs/swagger'; -import { IsNumber, IsString } from 'class-validator'; +import { IsNumber, IsString, IsUrl } from 'class-validator'; export class CryptoDto { @ApiProperty({ type: String, @@ -30,6 +30,7 @@ export class CryptoDto { description: 'Image for the cryptocurrency in ', example: 'https://myImage/com', }) + @IsUrl() @IsString() image: string; } diff --git a/src/user/user.service.ts b/src/user/user.service.ts index b37c3de..9c4447b 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -33,7 +33,6 @@ export class UserService { const user = await this.prisma.user.findMany({ select: { - id: true, firstName: true, lastName: true, pseudo: true, @@ -44,6 +43,7 @@ export class UserService { }, }, }, + take: 50, }); return user; }