File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -141,8 +141,8 @@ const searchMultipleIndices = async (
141141}
142142
143143const mergeHitsById = ( hits : SearchHit [ ] ) : SearchHit [ ] => {
144- let ids : string [ ] = [ ]
145- let idsToHits : Record < string , any > = { }
144+ const ids : string [ ] = [ ]
145+ const idsToHits : Record < string , any > = { }
146146 hits . forEach ( ( hit ) => {
147147 if ( idsToHits [ hit . _id ] === undefined ) {
148148 ids . push ( hit . _id )
@@ -153,8 +153,8 @@ const mergeHitsById = (hits: SearchHit[]): SearchHit[] => {
153153}
154154
155155const mergeResponsesById = ( responses : SearchResponse [ ] ) => {
156- let ids : string [ ] = [ ]
157- let idsToDocs : Record < string , any > = { }
156+ const ids : string [ ] = [ ]
157+ const idsToDocs : Record < string , any > = { }
158158 responses . forEach ( ( response ) =>
159159 response . body . hits . hits . forEach ( ( hit ) => {
160160 if ( idsToDocs [ hit . _id ] === undefined ) {
You can’t perform that action at this time.
0 commit comments