Skip to content

Commit

Permalink
[HOTFIX] dev id 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leGit-y committed May 10, 2024
1 parent 0f64e15 commit 8e6e282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controller/authController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/jwtHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 8e6e282

Please sign in to comment.