调整user实体,去掉id

This commit is contained in:
2025-05-12 12:09:42 +08:00
parent f49a1503f0
commit f16cbe5443
2 changed files with 2 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ export class UserService {
if (!existingUser) {
throw new BadRequestException('User not found');
}
await this.userRepository.softDelete(existingUser.id);
await this.userRepository.softDelete(existingUser.userId);
}
hashPassword(password: string, salt: string): string {