Commit 2bd6be0a authored by duanjinfei's avatar duanjinfei

fix get app date,cache category count

parent 8b7a601e
......@@ -18,6 +18,7 @@ async function fetchAllData(supabase, table: string, pageSize: number = 1000) {
.gt('is_show', 0)
.gt('recommend', 0)
// .eq('is_show', 1)
.eq("category.is_show", true)
.order('recommend', { ascending: false })
.order('updated_at', { ascending: false }) // 按照创建时间排序
.range(offset, offset + pageSize - 1); // 分页范围
......
......@@ -17,6 +17,7 @@ async function fetchAllData(supabase, table: string, pageSize: number = 1000) {
.select('id,name,icon,description,points,category_id,link,images,appPlatforms,caption,is_forward,is_show') // 可以根据需要调整字段
.gt('is_show', 0)
// .eq('is_show', 1)
.eq("category.is_show", true)
.order('updated_at', { ascending: false }) // 按照创建时间排序
.range(offset, offset + pageSize - 1); // 分页范围
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment