Fix not reading from the right type

This commit is contained in:
Austin Chen 2022-04-29 19:00:00 -04:00
parent 5bde99bc42
commit 1a29dbbe3a

View File

@ -10,7 +10,7 @@ const txnCollection = collection(db, 'txns')
const getCharityQuery = (charityId: string) => const getCharityQuery = (charityId: string) =>
query( query(
txnCollection, txnCollection,
where('toType', '==', 'charity'), where('toType', '==', 'CHARITY'),
where('toId', '==', charityId), where('toId', '==', charityId),
orderBy('createdTime', 'desc') orderBy('createdTime', 'desc')
) )