From 64ac4d08b7e5fc163bb256ff78cb6ef3f722e9f5 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sun, 20 Apr 2025 23:02:24 +0700 Subject: [PATCH] fix(api): remove each --- .../src/app/endpoints/watchlist/create-watchlist-item.dto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/app/endpoints/watchlist/create-watchlist-item.dto.ts b/apps/api/src/app/endpoints/watchlist/create-watchlist-item.dto.ts index ee2286727..663965ef1 100644 --- a/apps/api/src/app/endpoints/watchlist/create-watchlist-item.dto.ts +++ b/apps/api/src/app/endpoints/watchlist/create-watchlist-item.dto.ts @@ -2,7 +2,7 @@ import { DataSource } from '@prisma/client'; import { IsEnum, IsString } from 'class-validator'; export class CreateWatchlistItemDto { - @IsEnum(DataSource, { each: true }) + @IsEnum(DataSource) dataSource: DataSource; @IsString()