diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-12-22 23:10:26 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-12-22 23:10:26 +0200 |
| commit | 776f680ca58d066e24284b009eb9a28ced03a6ea (patch) | |
| tree | e3a79384a633187f23499c52a38e093a3b7ee47e /driver/src/utils | |
| parent | d34ed45d110be3df1436519594cf6cfd55a55ead (diff) | |
| download | carpool-776f680ca58d066e24284b009eb9a28ced03a6ea.tar.xz carpool-776f680ca58d066e24284b009eb9a28ced03a6ea.zip | |
Made the Driver dashboard respond to requests at realtime
Diffstat (limited to 'driver/src/utils')
| -rw-r--r-- | driver/src/utils/fetchRideRequests.ts | 2 | ||||
| -rw-r--r-- | driver/src/utils/fetchUserDetails.ts | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/driver/src/utils/fetchRideRequests.ts b/driver/src/utils/fetchRideRequests.ts index 53e6006..b9c32e0 100644 --- a/driver/src/utils/fetchRideRequests.ts +++ b/driver/src/utils/fetchRideRequests.ts @@ -5,7 +5,6 @@ import { fetchUserDetails } from "./fetchUserDetails"; export const fetchRideRequests = async () => { const user = auth.currentUser; - console.log(user) try { let data: any[] = [] if (user) { @@ -14,7 +13,6 @@ export const fetchRideRequests = async () => { const querySnapshot = await getDocs(q); querySnapshot.forEach((doc: DocumentData) => { data.push(doc.data()) - console.log(doc.id, " => ", doc.data()); }); const rideReqs = data?.map(async (rideReq) => { const passengerData: any = await fetchUserDetails(rideReq.passengerID); diff --git a/driver/src/utils/fetchUserDetails.ts b/driver/src/utils/fetchUserDetails.ts index a2d5cb6..4577146 100644 --- a/driver/src/utils/fetchUserDetails.ts +++ b/driver/src/utils/fetchUserDetails.ts @@ -12,7 +12,6 @@ export const fetchUserDetails = async (uid) => { const querySnapshot = await getDocs(q); querySnapshot.forEach((doc: DocumentData) => { data = doc.data() - console.log(doc.id, " => ", doc.data()); }); return data; } else { |
