We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26d0ac5 commit a01560bCopy full SHA for a01560b
src/resolvers/userResolver.ts
@@ -10,7 +10,7 @@ import {
10
registerEnumType,
11
Resolver,
12
} from 'type-graphql';
13
-import { Brackets, MoreThan, Repository } from 'typeorm';
+import { Brackets, MoreThanOrEqual, Repository } from 'typeorm';
14
15
import moment from 'moment';
16
import { User, UserOrderField } from '../entities/user';
@@ -319,7 +319,7 @@ export class UserResolver {
319
@Arg('walletAddress', _type => String, { nullable: true })
320
walletAddress?: string,
321
) {
322
- const whereCondition: any = { qaccPoints: MoreThan(0) };
+ const whereCondition: any = { qaccPoints: MoreThanOrEqual(1) };
323
if (walletAddress) {
324
whereCondition.walletAddress = walletAddress;
325
}
0 commit comments