diff --git a/src/core/service/pool.service.ts b/src/core/service/pool.service.ts index 925cc42..a0401aa 100644 --- a/src/core/service/pool.service.ts +++ b/src/core/service/pool.service.ts @@ -23,7 +23,7 @@ export class PoolService { const where = { projectId: projectId, deleted: false }; if (endDateTo && endDateFrom) { - where['endDate'] = { + where['createAt'] = { gte: new Date(endDateFrom), lte: new Date(endDateTo), }; diff --git a/src/core/type/doc/pool.ts b/src/core/type/doc/pool.ts index 5ac9fa0..a6b86cd 100644 --- a/src/core/type/doc/pool.ts +++ b/src/core/type/doc/pool.ts @@ -41,10 +41,10 @@ export class ClaimStatusQuery { @ApiProperty({ type: 'string' }) wallet: string; - @ArrayNotEmpty() - @IsArray() - @ApiProperty({ isArray: true }) - pools: string[]; + // @ArrayNotEmpty() + // @IsArray() + // @ApiProperty({ isArray: true }) + // pools: string[]; } export class CreatePoolBody extends AuthBody {