diff --git a/src/state/queries/actor-autocomplete.ts b/src/state/queries/actor-autocomplete.ts index c3fcb92f..10bc951c 100644 --- a/src/state/queries/actor-autocomplete.ts +++ b/src/state/queries/actor-autocomplete.ts @@ -30,7 +30,7 @@ export function useActorAutocompleteQuery(prefix: string) { async queryFn() { const res = prefix ? await getAgent().searchActorsTypeahead({ - term: prefix, + q: prefix, limit: 8, }) : undefined @@ -68,7 +68,7 @@ export function useActorAutocompleteFn() { queryKey: RQKEY(query || ''), queryFn: () => getAgent().searchActorsTypeahead({ - term: query, + q: query, limit, }), }) diff --git a/src/state/queries/actor-search.ts b/src/state/queries/actor-search.ts index 7123736d..f1991610 100644 --- a/src/state/queries/actor-search.ts +++ b/src/state/queries/actor-search.ts @@ -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 },