fix: types errors

This commit is contained in:
DIYgod 2023-03-22 00:50:05 +00:00
parent 57122cd17d
commit eeeada22ff
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -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",
})

View File

@ -70,7 +70,7 @@ export const prefetchGetSiteToSubscriptions = async (
}
export const prefetchGetSites = async (
input: string[],
input: number[],
queryClient: QueryClient,
) => {
const key = ["getSites", input]

View File

@ -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