Skip to content

Commit 09b09df

Browse files
committed
rename findSpaces with findManyPublic
1 parent 4496248 commit 09b09df

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/hypergraph-react/src/hooks/usePublicSpaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useQuery } from '@tanstack/react-query';
44
export const usePublicSpaces = () => {
55
const result = useQuery({
66
queryKey: ['hypergraph-public-spaces'],
7-
queryFn: Space.findSpaces,
7+
queryFn: Space.findManyPublic,
88
});
99

1010
return {

packages/hypergraph/src/space/find-many-public.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const parseSpacesQueryResult = (queryResult: SpacesQueryResult) => {
8989
return { data, invalidSpaces };
9090
};
9191

92-
export const findSpaces = async () => {
92+
export const findManyPublic = async () => {
9393
const queryResult = await request<SpacesQueryResult>(`${Graph.TESTNET_API_ORIGIN}/graphql`, spacesQueryDocument);
9494
return parseSpacesQueryResult(queryResult);
9595
};

0 commit comments

Comments
 (0)