fixed bug in leaderboard that caused it to be ordered incorrectly
This commit is contained in:
1 parent
81d2f89def
commit
42927275f6
1 file changed
+3
-2
@@ -107,6 +107,7 @@ class DbHelper {
|
|||||||
static Stream<List<Map<String, dynamic>>> get feedStream =>
|
static Stream<List<Map<String, dynamic>>> get feedStream =>
|
||||||
_supabase.from('feed').stream(primaryKey: ['timestamp']);
|
_supabase.from('feed').stream(primaryKey: ['timestamp']);
|
||||||
|
|
||||||
static Stream<List<Map<String, dynamic>>> get profilesStream =>
|
static Stream<List<Map<String, dynamic>>> get profilesStream => _supabase
|
||||||
_supabase.from('profiles').stream(primaryKey: ['id']);
|
.from('profiles')
|
||||||
|
.stream(primaryKey: ['id']).order('points', ascending: false);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user