mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 23:29:08 +03:00
fix: temporarily disable count queries
This commit is contained in:
1 parent
da52ba3245
commit
5a5ecd4e30
1 file changed
+10
-6
@@ -27,13 +27,17 @@ export async function getContentCount(
|
||||
if (favorite) query.favorite = favorite
|
||||
if (name) query.name = name
|
||||
|
||||
const { data, error } = await get('/platform/projects/{ref}/content/count', {
|
||||
params: { path: { ref: projectRef }, query: { type, visibility, favorite, name } },
|
||||
signal,
|
||||
})
|
||||
return {
|
||||
count: 0,
|
||||
}
|
||||
|
||||
if (error) throw handleError(error)
|
||||
return data
|
||||
// const { data, error } = await get('/platform/projects/{ref}/content/count', {
|
||||
// params: { path: { ref: projectRef }, query: { type, visibility, favorite, name } },
|
||||
// signal,
|
||||
// })
|
||||
|
||||
// if (error) throw handleError(error)
|
||||
// return data
|
||||
}
|
||||
|
||||
export type ContentIdData = Awaited<ReturnType<typeof getContentCount>>
|
||||
|
||||
Reference in new issue
Block a user