Skip to content

Commit 6bfe43f

Browse files
authored
Update database.dart (#17)
1 parent a5e1920 commit 6bfe43f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/firebase_snippets_app/lib/snippets/database.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,7 @@ class RealtimeDatabaseSnippets implements DocSnippet {
274274
final myUserId = FirebaseAuth.instance.currentUser?.uid;
275275
final topUserPostsRef = FirebaseDatabase.instance
276276
.ref("user-posts/$myUserId")
277-
.orderByChild("starCount")
278-
.ref;
277+
.orderByChild("starCount");
279278
// [END lists_of_data_sorting]
280279
}
281280

0 commit comments

Comments
 (0)