From d2e9c04453c061a426ae87d06f6b843490b0ec4b Mon Sep 17 00:00:00 2001 From: Veirt Date: Sat, 16 Nov 2024 02:05:10 +0800 Subject: [PATCH] fix: hanging request --- src/middleware/auth.middleware.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/middleware/auth.middleware.ts b/src/middleware/auth.middleware.ts index e009955..ae22457 100644 --- a/src/middleware/auth.middleware.ts +++ b/src/middleware/auth.middleware.ts @@ -27,7 +27,6 @@ export const firebaseAuthMiddleware: RequestHandler = async ( ...(learnerData.data() as Learner), id: user.uid, }; - return; } const tutorData = await firestore.collection("tutors").doc(user.uid).get(); @@ -36,7 +35,6 @@ export const firebaseAuthMiddleware: RequestHandler = async ( ...(tutorData.data() as Tutor), id: user.uid, }; - return; } if (!learnerData.exists && !tutorData.exists) {