be 1:1
This commit is contained in:
6
backend/dist/auth/auth.controller.js
vendored
6
backend/dist/auth/auth.controller.js
vendored
@@ -42,7 +42,7 @@ let AuthController = class AuthController {
|
||||
return await this.authService.login(dto);
|
||||
}
|
||||
async getMe(req) {
|
||||
return await this.userService.findUserInfoByIdOrFail(req.user.userId);
|
||||
return await this.userService.findUserWithProfileByIdOrFail(req.user.userId);
|
||||
}
|
||||
};
|
||||
exports.AuthController = AuthController;
|
||||
@@ -70,8 +70,8 @@ __decorate([
|
||||
(0, common_1.Get)('me'),
|
||||
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
||||
(0, swagger_1.ApiBearerAuth)(),
|
||||
(0, swagger_1.ApiOkResponse)({ description: '성공', type: user_info_response_dto_1.UserInfoResponseDto }),
|
||||
openapi.ApiResponse({ status: 200, type: require("../users/dto/user-info-response.dto").UserInfoResponseDto }),
|
||||
(0, swagger_1.ApiOkResponse)({ description: '성공', type: user_info_response_dto_1.UserWithProfileResponseDto }),
|
||||
openapi.ApiResponse({ status: 200, type: require("../users/dto/user-info-response.dto").UserWithProfileResponseDto }),
|
||||
__param(0, (0, common_1.Request)()),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object]),
|
||||
|
Reference in New Issue
Block a user