replace deprecated `term` with `q` in search actor (#3405)

zio/stable
Hailey 2024-04-04 11:13:11 -07:00 committed by GitHub
parent b783745b2e
commit c190fd58ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ export function useActorAutocompleteQuery(prefix: string) {
async queryFn() { async queryFn() {
const res = prefix const res = prefix
? await getAgent().searchActorsTypeahead({ ? await getAgent().searchActorsTypeahead({
term: prefix, q: prefix,
limit: 8, limit: 8,
}) })
: undefined : undefined
@ -68,7 +68,7 @@ export function useActorAutocompleteFn() {
queryKey: RQKEY(query || ''), queryKey: RQKEY(query || ''),
queryFn: () => queryFn: () =>
getAgent().searchActorsTypeahead({ getAgent().searchActorsTypeahead({
term: query, q: query,
limit, limit,
}), }),
}) })

View File

@ -13,7 +13,7 @@ export function useActorSearch(prefix: string) {
queryKey: RQKEY(prefix || ''), queryKey: RQKEY(prefix || ''),
async queryFn() { async queryFn() {
const res = await getAgent().searchActors({ const res = await getAgent().searchActors({
term: prefix, q: prefix,
}) })
return res.data.actors return res.data.actors
}, },