Skip to content

Commit

Permalink
cap search limit to 50 per schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rotorsoft authored and ilijabojanovic committed Nov 12, 2024
1 parent 725a424 commit e27c410
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const PersonalInformationStep = ({

const { data: profiles, isLoading: isCheckingUsernameUniqueness } =
useSearchProfilesQuery({
limit: 1000,
limit: 50,
searchTerm: debouncedSearchTerm,
communityId: 'all_communities',
orderBy: APIOrderBy.LastActive,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const AdminsAndModerators = () => {
const { data: searchResults, refetch } = useSearchProfilesQuery({
communityId,
searchTerm: debouncedSearchTerm,
limit: 100,
limit: 50,
orderBy: APIOrderBy.LastActive,
orderDirection: APIOrderDirection.Desc,
enabled: !!communityId,
Expand Down

0 comments on commit e27c410

Please sign in to comment.