Skip to content

Commit

Permalink
fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyyuan committed Dec 10, 2024
1 parent 46e6214 commit efc256c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/service/pool.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down
8 changes: 4 additions & 4 deletions src/core/type/doc/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit efc256c

Please sign in to comment.