Skip to content

Commit 4110a8b

Browse files
committed
chore: fix lint errors
1 parent a715bb7 commit 4110a8b

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.github/workflows/nodejs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node-version: [12.x, 14.x, 16.x]
13+
node-version: [14.x, 16.x]
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Use Node.js ${{ matrix.node-version }}
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
CI: true
2626
- name: Send codecov.io stats
27-
if: matrix.node-version == '12.x'
27+
if: matrix.node-version == '14.x'
2828
run: bash <(curl -s https://codecov.io/bash) || echo ''
2929

3030
publish:
@@ -33,10 +33,10 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- uses: actions/checkout@v2
36-
- name: Use Node.js 12
36+
- name: Use Node.js 14
3737
uses: actions/setup-node@v1
3838
with:
39-
node-version: 12.x
39+
node-version: 14.x
4040
- name: Install node_modules
4141
run: yarn install
4242
- name: Build

src/resolvers/search.ts

+12-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,17 @@ export default function createSearchResolver<TSource, TContext>(
6969
argsConfigMap.collapse = searchITC.getField('collapse');
7070
argsConfigMap.highlight = searchITC.getField('highlight');
7171

72-
const topLevelArgs = ['q', 'query', 'collapse', 'sort', 'limit', 'skip', 'aggs', 'highlight', 'opts'];
72+
const topLevelArgs = [
73+
'q',
74+
'query',
75+
'collapse',
76+
'sort',
77+
'limit',
78+
'skip',
79+
'aggs',
80+
'highlight',
81+
'opts',
82+
];
7383
argsConfigMap.opts = schemaComposer
7484
.createInputTC({
7585
name: `${sourceTC.getTypeName()}Opts`,
@@ -146,7 +156,7 @@ export default function createSearchResolver<TSource, TContext>(
146156
args.body.query = args.query;
147157
delete args.query;
148158
}
149-
159+
150160
if (args.collapse) {
151161
args.body.collapse = args.collapse;
152162
delete args.collapse;

src/types/SearchHitItem.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function getSearchHitItemTC<TContext>(
3535
type: 'JSON',
3636
description: 'Returns data only if `args.collapse` is provided',
3737
},
38-
38+
3939
highlight: {
4040
type: 'JSON',
4141
description: 'Returns data only if `args.highlight` is provided',

0 commit comments

Comments
 (0)