fix: backup delete content
This commit is contained in:
parent
3f54b5d243
commit
45c707d8e1
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ export default abstract class BackupHelper {
|
||||||
for (const section of sections.filter((s) => Object.keys(backup).includes(s.type))) {
|
for (const section of sections.filter((s) => Object.keys(backup).includes(s.type))) {
|
||||||
let refered = this.backupSectionRefered[section.type];
|
let refered = this.backupSectionRefered[section.type];
|
||||||
for (const ref of refered) {
|
for (const ref of refered) {
|
||||||
await this.transactionManager.getRepository(ref).delete({});
|
await this.transactionManager.getRepository(ref).deleteAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue