From e2f7ac85b12b4c42a33c2cceb618458eab0039dd Mon Sep 17 00:00:00 2001 From: luchang <835498386@qq.com> Date: Thu, 14 Mar 2024 00:10:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=AA=8C=E8=AF=81=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/server/src/services/user.service.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/server/src/services/user.service.ts b/packages/server/src/services/user.service.ts index 391bf15..d148061 100644 --- a/packages/server/src/services/user.service.ts +++ b/packages/server/src/services/user.service.ts @@ -136,10 +136,6 @@ export class UserService { throw new HttpException('该账户已被注册', HttpStatus.BAD_REQUEST); } - if (await this.userRepo.findOne({ name: user.name })) { - throw new HttpException('该账户已被注册', HttpStatus.BAD_REQUEST); - } - if (user.email && (await this.userRepo.findOne({ email: user.email }))) { throw new HttpException('该邮箱已被注册', HttpStatus.BAD_REQUEST); }