Merge pull request #109 from fantasticit/feat/admin

server: fix delete verify record
This commit is contained in:
fantasticit 2022-06-28 21:29:00 +08:00 committed by GitHub
commit 30a6cb95c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ export class VerifyService {
* @param record * @param record
*/ */
private async deleteVerifyCode(id) { 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);
} }
/** /**