fixed bug in leaderboard that caused it to be ordered incorrectly

This commit is contained in:
SomnusVeritas
2023-10-21 02:24:22 +02:00
parent 81d2f89def
commit 42927275f6

View File

@@ -107,6 +107,7 @@ class DbHelper {
static Stream<List<Map<String, dynamic>>> get feedStream =>
_supabase.from('feed').stream(primaryKey: ['timestamp']);
static Stream<List<Map<String, dynamic>>> get profilesStream =>
_supabase.from('profiles').stream(primaryKey: ['id']);
static Stream<List<Map<String, dynamic>>> get profilesStream => _supabase
.from('profiles')
.stream(primaryKey: ['id']).order('points', ascending: false);
}