Skip to content

Commit 267409f

Browse files
committed
Fix typo in function name
1 parent dbb4d1d commit 267409f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ class Index<T> implements Types.IndexInterface<T> {
8282
config
8383
)
8484
} else if (method.toUpperCase() === 'GET') {
85-
const parsFilter = (filter?: any) => {
85+
const parseFilter = (filter?: any) => {
8686
if (typeof filter === 'string') return filter
8787
else if (Array.isArray(filter)) return JSON.stringify(filter)
8888
else return undefined
8989
}
9090
const getParams: Types.GetSearchRequest = {
9191
...params,
92-
filter: parsFilter(options?.filter),
92+
filter: parseFilter(options?.filter),
9393
facetsDistribution: options?.facetsDistribution
9494
? JSON.stringify(options.facetsDistribution)
9595
: undefined,

0 commit comments

Comments
 (0)