Skip to content

Commit a01560b

Browse files
committed
added more than equal to 1 for qacc points
1 parent 26d0ac5 commit a01560b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resolvers/userResolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
registerEnumType,
1111
Resolver,
1212
} from 'type-graphql';
13-
import { Brackets, MoreThan, Repository } from 'typeorm';
13+
import { Brackets, MoreThanOrEqual, Repository } from 'typeorm';
1414

1515
import moment from 'moment';
1616
import { User, UserOrderField } from '../entities/user';
@@ -319,7 +319,7 @@ export class UserResolver {
319319
@Arg('walletAddress', _type => String, { nullable: true })
320320
walletAddress?: string,
321321
) {
322-
const whereCondition: any = { qaccPoints: MoreThan(0) };
322+
const whereCondition: any = { qaccPoints: MoreThanOrEqual(1) };
323323
if (walletAddress) {
324324
whereCondition.walletAddress = walletAddress;
325325
}

0 commit comments

Comments
 (0)