Skip to content

Commit

Permalink
graphql-compose#96: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pcasa authored Sep 16, 2020
1 parent b363746 commit 51decab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default function createSearchResolver<TSource, TContext>(

const res: any = await searchFC.resolve(rp.source, args, rp.context, rp.info);

res.count = typeof(res.hits.total?.value) === "number" ? res.hits.total.value ? res.hits.total;
res.count = typeof(res.hits.total?.value) === "number" ? res.hits.total.value : res.hits.total;
res.max_score = res.hits.max_score;
res.hits = res.hits.hits;

Expand Down

0 comments on commit 51decab

Please sign in to comment.