Commit 5fbd4b46 authored by duanjinfei's avatar duanjinfei

fix update rank

parent ef4c305c
...@@ -18,7 +18,7 @@ Deno.serve(async (req) => { ...@@ -18,7 +18,7 @@ Deno.serve(async (req) => {
{ global: { headers: { Authorization: req.headers.get('Authorization')! } } } { global: { headers: { Authorization: req.headers.get('Authorization')! } } }
) )
const { data: userData, error: userError } = await supabase.from('user').select('*').order('rank', { ascending: false }).limit(100); const { data: userData, error: userError } = await supabase.from('user').select('*').order('rank', { ascending: true }).limit(100);
if (userError) { if (userError) {
console.error('Error fetching top 100 users:', error); console.error('Error fetching top 100 users:', error);
......
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