fix: temporarily disable count queries

This commit is contained in:
Paul Cioanca committed 2024-12-19 22:18:04 +02:00
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>>