Skip to content

Commit

Permalink
fix: hanging request
Browse files Browse the repository at this point in the history
  • Loading branch information
Veirt committed Nov 15, 2024
1 parent eb34b42 commit d2e9c04
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/middleware/auth.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -36,7 +35,6 @@ export const firebaseAuthMiddleware: RequestHandler = async (
...(tutorData.data() as Tutor),
id: user.uid,
};
return;
}

if (!learnerData.exists && !tutorData.exists) {
Expand Down

0 comments on commit d2e9c04

Please sign in to comment.