diff --git a/src/App.js b/src/App.js index 9f4a330..6bc6479 100644 --- a/src/App.js +++ b/src/App.js @@ -26,7 +26,8 @@ function App() { useEffect(() => { // const q = query(collection(db, "patientData")); // cached - const q = query(collection(db, "patientData"), where("testTime", ">=", moment().format("YYYY-MM-DD"))); + const notCachedDate = "2023-11-12"; + const q = query(collection(db, "patientData"), where("createdAt", ">=", moment(notCachedDate).format("YYYY-MM-DD"))); const unsub = onSnapshot(q, (querySnapshot) => { const patients = []; @@ -53,7 +54,8 @@ function App() { }, []); useEffect(() => { - const q = query(collection(db, "testData"), where("testTime", ">=", moment().format("YYYY-MM-DD"))); + const notCachedDate = "2023-11-12"; + const q = query(collection(db, "testData"), where("testTime", ">=", moment(notCachedDate).format("YYYY-MM-DD"))); const unsub = onSnapshot(q, (querySnapshot) => { const hposTests = [];