server: fix delete verify record

This commit is contained in:
fantasticit 2022-06-28 21:12:33 +08:00
parent 9bf8112c9e
commit 24f7e9ae61
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
/**