Skip to content

Commit

Permalink
Merge pull request #149 from dtfiedler/patch-1
Browse files Browse the repository at this point in the history
fix(graphql): remove falsey checks in graphql resolvers
  • Loading branch information
cedriking authored Dec 1, 2023
2 parents 5199afc + e600b36 commit 6ce9d01
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/graphql/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ export const resolvers = {
const params: QueryParams = {
limit: pageSize + 1,
offset,
ids: queryParams.ids || undefined,
to: queryParams.recipients || undefined,
from: queryParams.owners || undefined,
tags: queryParams.tags || undefined,
ids: queryParams.ids,
to: queryParams.recipients,
from: queryParams.owners,
tags: queryParams.tags,
blocks: true,
since: timestamp,
select: fieldMap,
minHeight: queryParams.block?.min || undefined,
maxHeight: queryParams.block?.max || undefined,
sortOrder: queryParams.sort || undefined,
minHeight: queryParams.block?.min,
maxHeight: queryParams.block?.max,
sortOrder: queryParams.sort,
};

const results = (await generateQuery(params, connection)) as TransactionHeader[];
Expand Down

0 comments on commit 6ce9d01

Please sign in to comment.