Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Commit

Permalink
Just do, filter away those which are delivered
Browse files Browse the repository at this point in the history
  • Loading branch information
kharann committed Mar 21, 2020
1 parent aadf030 commit 83ec1b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export const getOngoingCount = async (callback = () => {}) => {
const resp = await fb
.firestore()
.collectionGroup("requests")
.where("delivered", "==", false)
.orderBy("connectedUser")
.startAfter(null)
.get();
Expand Down

0 comments on commit 83ec1b9

Please sign in to comment.