Skip to content

Commit e043b6a

Browse files
committed
modify: 오탈자 수정
1 parent 84f016c commit e043b6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/controllers/user.controller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ export class UserController {
107107
};
108108

109109
fetchCurrentUser: RequestHandler = async (req: Request, res: Response<LoginResponseDto>) => {
110-
const currnetUser = req.user;
110+
const currentUser = req.user;
111111

112112
// 인가 middle 에서 만든 객체 그대로 재활용
113-
const username = currnetUser.username || '';
114-
const profile = { thumbnail: currnetUser.thumbnail || '' };
113+
const username = currentUser.username || '';
114+
const profile = { thumbnail: currentUser.thumbnail || '' };
115115

116116
const response = new LoginResponseDto(
117117
true,
118118
'유저 정보 조회에 성공하였습니다.',
119-
{ id: currnetUser.id, username: username, profile: profile },
119+
{ id: currentUser.id, username: username, profile: profile },
120120
null,
121121
);
122122

0 commit comments

Comments
 (0)