fix: types errors
This commit is contained in:
parent
57122cd17d
commit
eeeada22ff
|
|
@ -131,7 +131,7 @@ export const getSite = async (input: string, customUnidata?: Unidata) => {
|
|||
return site
|
||||
}
|
||||
|
||||
export const getSites = async (input: string[]) => {
|
||||
export const getSites = async (input: number[]) => {
|
||||
const client = createClient({
|
||||
url: "https://indexer.crossbell.io/v1/graphql",
|
||||
})
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ export const prefetchGetSiteToSubscriptions = async (
|
|||
}
|
||||
|
||||
export const prefetchGetSites = async (
|
||||
input: string[],
|
||||
input: number[],
|
||||
queryClient: QueryClient,
|
||||
) => {
|
||||
const key = ["getSites", input]
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ export const useGetSite = (input?: string) => {
|
|||
})
|
||||
}
|
||||
|
||||
export const useGetSites = (input: string[]) => {
|
||||
export const useGetSites = (input: number[]) => {
|
||||
return useQuery(["getSites", input], async () => {
|
||||
if (!input) {
|
||||
return null
|
||||
|
|
|
|||
Loading…
Reference in New Issue