Skip to content

Commit

Permalink
replace deprecated term with q in search actor (#3405)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored Apr 4, 2024
1 parent b783745 commit c190fd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/state/queries/actor-autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function useActorAutocompleteQuery(prefix: string) {
async queryFn() {
const res = prefix
? await getAgent().searchActorsTypeahead({
term: prefix,
q: prefix,
limit: 8,
})
: undefined
Expand Down Expand Up @@ -68,7 +68,7 @@ export function useActorAutocompleteFn() {
queryKey: RQKEY(query || ''),
queryFn: () =>
getAgent().searchActorsTypeahead({
term: query,
q: query,
limit,
}),
})
Expand Down
2 changes: 1 addition & 1 deletion src/state/queries/actor-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function useActorSearch(prefix: string) {
queryKey: RQKEY(prefix || ''),
async queryFn() {
const res = await getAgent().searchActors({
term: prefix,
q: prefix,
})
return res.data.actors
},
Expand Down

0 comments on commit c190fd5

Please sign in to comment.