Quellcode durchsuchen

Refactor: Remove TODO comments for userID in mail verification functions

BedirhanOZCAN vor 1 Monat
Ursprung
Commit
57614a3a75

+ 1 - 1
src/actions/auth/finishMailVerified/index.ts

@@ -10,7 +10,7 @@ import {
 const finishMailVerify = async (input: FinishMailVerifyInput): Promise<FinishMailVerifyResult> => {
     try {
         const {
-            userID, // TODO userID kaldırılıp mail kullanılacak. maile göre user bulunacak.
+            userID,
             code
         } = input;
 

+ 1 - 1
src/actions/auth/startMailVerify/index.ts

@@ -15,7 +15,7 @@ import {
 const startMailVerify = async (input: StartMailVerifyInput): Promise<StartMailVerifyResult> => {
     try {
         const {
-            userID // TODO MAİL ALINACAK DTO İLE YAPIALCAK MAİL İLE USER ARANCAK MONGO DA 
+            userID
         } = input;
 
         if (!userID) {

+ 1 - 5
src/routes/authRoutes.ts

@@ -35,8 +35,4 @@ router.post("/finish-mail-verify", finishMailVerify);
 router.post("/start-mail-verify", startMailVerify);
 router.post("/refresh-token", refreshToken);
 
-export default router;
-
-
-// TODO PARAMS YANİ ARGS ALAN YERLERDE DTO OLARAK KONTROL EDİCEZ
-// TODO CONTEXT AUTHMİDDLEWARE EKLİYOR
+export default router;