فهرست منبع

Refactor: Remove TODO comments for userID in mail verification functions

BedirhanOZCAN 1 ماه پیش
والد
کامیت
57614a3a75
3فایلهای تغییر یافته به همراه3 افزوده شده و 7 حذف شده
  1. 1 1
      src/actions/auth/finishMailVerified/index.ts
  2. 1 1
      src/actions/auth/startMailVerify/index.ts
  3. 1 5
      src/routes/authRoutes.ts

+ 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;