fix: history order on cloud sync

This commit is contained in:
Liyas Thomas
2021-03-11 13:51:22 +05:30
parent 17da230d72
commit 988a99efb7
4 changed files with 20918 additions and 31 deletions

View File

@@ -88,6 +88,7 @@ export class FirebaseInstance {
this.usersCollection
.doc(this.currentUser.uid)
.collection("history")
.orderBy("updatedOn", "desc")
.onSnapshot((historyRef) => {
const history = []
historyRef.forEach((doc) => {
@@ -101,6 +102,7 @@ export class FirebaseInstance {
this.usersCollection
.doc(this.currentUser.uid)
.collection("graphqlHistory")
.orderBy("updatedOn", "desc")
.onSnapshot((historyRef) => {
const history = []
historyRef.forEach((doc) => {