refactor: Remove commented out code and unused imports

This commit is contained in:
wancat committed 2024-06-28 16:14:26 +08:00
1 parent 218d433c14
commit d795dbd788
6 files changed
+3 -25

No files matched your search

@@ -69,7 +69,7 @@ export const getSessionById = asyncHandler(
}
)
export const getActiveSessionControler = asyncHandler(
export const getActiveSessionHandler = asyncHandler(
async (req: Request, res: Response) => {
const { questId } = matchedData(req)
const user = await User.findById((req.user as Express.ExistingUser).id)
+1 -1
View File
@@ -20,7 +20,7 @@ router.post(
router.get(
'/active',
activeSessionValidator,
sessionController.getActiveSessionControler
sessionController.getActiveSessionHandler
)
router.get(
'/:sessionId',