Skip to content

Commit bdc27e6

Browse files
committed
graphql-compose#96: fix prettier lint issue
1 parent 7309833 commit bdc27e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/resolvers/search.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ export default function createSearchResolver<TSource, TContext>(
177177

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

180-
res.count = typeof(res.hits.total?.value) === "number" ? res.hits.total.value : res.hits.total;
180+
res.count =
181+
typeof res.hits.total?.value === 'number' ? res.hits.total.value : res.hits.total;
181182
res.max_score = res.hits.max_score;
182183
res.hits = res.hits.hits;
183184

0 commit comments

Comments
 (0)