Skip to content

Commit

Permalink
add userAddress to where
Browse files Browse the repository at this point in the history
  • Loading branch information
franzns committed Nov 15, 2023
1 parent ef15774 commit f8b30b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/pool/lib/pool-gql-loader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class PoolGqlLoaderService {
private mapQueryArgsToPoolQuery(args: QueryPoolGetPoolsArgs): Prisma.PrismaPoolFindManyArgs {
let orderBy: Prisma.PrismaPoolOrderByWithRelationInput = {};
const orderDirection = args.orderDirection || undefined;
const userAddress = args.userAddress;
const userAddress = args.where?.userAddress;

switch (args.orderBy) {
case 'totalLiquidity':
Expand Down
3 changes: 1 addition & 2 deletions modules/pool/pool.gql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ extend type Query {
orderDirection: GqlPoolOrderDirection
where: GqlPoolFilter
textSearch: String
userAddress: String
): [GqlPoolMinimal!]!
poolGetPoolsCount(
first: Int
Expand All @@ -16,7 +15,6 @@ extend type Query {
orderDirection: GqlPoolOrderDirection
where: GqlPoolFilter
textSearch: String
userAddress: String
): Int!
poolGetSwaps(first: Int, skip: Int, where: GqlPoolSwapFilter): [GqlPoolSwap!]!
poolGetBatchSwaps(first: Int, skip: Int, where: GqlPoolSwapFilter): [GqlPoolBatchSwap!]!
Expand Down Expand Up @@ -618,6 +616,7 @@ input GqlPoolFilter {
chainIn: [GqlChain!]
chainNotIn: [GqlChain!]
createTime: GqlPoolTimePeriod
userAddress: String
}

enum GqlPoolFilterCategory {
Expand Down

0 comments on commit f8b30b7

Please sign in to comment.