Skip to content

Commit

Permalink
changed leaderboards sortBy
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkarnold committed Oct 27, 2021
1 parent fdf9ac9 commit 90bc40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/firestore.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ export class FirestoreService {
}

getSubmittedRosters(): Observable<DocumentChangeAction<SubmittedRoster>[]> {
let rostersCollection = this.afs.collection("submittedRosters", ref => ref.orderBy('squadRating', 'desc'));
let rostersCollection = this.afs.collection("submittedRosters", ref => ref.orderBy('startersRating', 'desc'));
return rostersCollection.snapshotChanges() as Observable<DocumentChangeAction<SubmittedRoster>[]>;
}

Expand Down

0 comments on commit 90bc40c

Please sign in to comment.