From 8e6e282035ff51436692e83ecbe10d7ee09662a0 Mon Sep 17 00:00:00 2001 From: yelin Date: Fri, 10 May 2024 17:33:47 +0900 Subject: [PATCH] =?UTF-8?q?[HOTFIX]=20dev=20id=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/authController.ts | 2 +- src/modules/jwtHandler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/authController.ts b/src/controller/authController.ts index c2fca5a..86eba64 100644 --- a/src/controller/authController.ts +++ b/src/controller/authController.ts @@ -146,7 +146,7 @@ const serviceLogout = async (req: Request, res: Response, next: NextFunction) => const serviceUnregister = async (req: Request, res: Response, next: NextFunction) => { try { const { userId } = req.body; - if (userId == 11) { + if (userId == 6) { return res.status(sc.BAD_REQUEST).send(success(sc.BAD_REQUEST, rm.DEV_USER_UNREGISTER_IMPOSSIBLE)); } await authService.serviceUnregister(userId); diff --git a/src/modules/jwtHandler.ts b/src/modules/jwtHandler.ts index 5abc74d..8ebf529 100644 --- a/src/modules/jwtHandler.ts +++ b/src/modules/jwtHandler.ts @@ -11,7 +11,7 @@ const access = (userId: number) => { var accessToken; // dev user일 경우 - if(userId == 11){ + if(userId == 6){ accessToken = jwt.sign(payload, process.env.JWT_SECRET as string, { expiresIn: "90d" }); } else{