mirror of https://github.com/fantasticit/think.git
server: fix delete verify record
parent
9bf8112c9e
commit
24f7e9ae61
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue