This commit is contained in:
2025-07-18 15:02:46 +09:00
parent bf8c75f770
commit 766a2ad111
37 changed files with 1284 additions and 943 deletions

View File

@@ -16,18 +16,21 @@ exports.UsersController = void 0;
const common_1 = require("@nestjs/common");
const users_service_1 = require("./users.service");
const change_password_dto_1 = require("./dto/change-password.dto");
const jwt_auth_guard_1 = require("../auth/jwt-auth.guard");
const sucees_response_dto_1 = require("../common/dto/sucees-response.dto");
let UsersController = class UsersController {
userService;
constructor(userService) {
this.userService = userService;
}
async changePassword(req, dto) {
console.log("dd");
return await this.userService.changePassword(2, dto);
await this.userService.changePassword(req.user.userId, dto);
return sucees_response_dto_1.SuccessResponseDto.ok();
}
};
exports.UsersController = UsersController;
__decorate([
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
(0, common_1.Patch)('password'),
__param(0, (0, common_1.Request)()),
__param(1, (0, common_1.Body)()),