mirror of https://github.com/fantasticit/think.git
Merge pull request #109 from fantasticit/feat/admin
server: fix delete verify record
This commit is contained in:
commit
30a6cb95c1
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue