From 24f7e9ae61e68c0f08b4cb0b57e8ee24e6819a86 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Tue, 28 Jun 2022 21:12:33 +0800 Subject: [PATCH] server: fix delete verify record --- packages/server/src/services/verify.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/services/verify.service.ts b/packages/server/src/services/verify.service.ts index cb3e5f9..bf1371c 100644 --- a/packages/server/src/services/verify.service.ts +++ b/packages/server/src/services/verify.service.ts @@ -21,7 +21,8 @@ export class VerifyService { * @param record */ private async deleteVerifyCode(id) { - await this.verifyRepo.remove(await this.verifyRepo.find(id)); + const record = await this.verifyRepo.findOne(id); + await this.verifyRepo.remove(record); } /**