This commit is contained in:
2025-08-04 16:18:30 +09:00
parent 3864eaa965
commit 3daefc7b1b
36 changed files with 349 additions and 92 deletions

View File

@@ -50,6 +50,12 @@ let UsersService = class UsersService {
user.password = hashed;
await this.repo.save(user);
}
async softDelete(userId) {
const user = await this.repo.findOne({ where: { id: userId } });
if (!user)
throw new common_1.NotFoundException('User not found');
await this.repo.softDelete(userId);
}
async findUserInfoByIdOrFail(id) {
const user = await this.findById(id);
if (!user)