fix: backup delete content

This commit is contained in:
Julian Krauser 2025-07-12 22:36:09 +02:00
parent 3f54b5d243
commit 45c707d8e1

View file

@ -162,7 +162,7 @@ export default abstract class BackupHelper {
for (const section of sections.filter((s) => Object.keys(backup).includes(s.type))) {
let refered = this.backupSectionRefered[section.type];
for (const ref of refered) {
await this.transactionManager.getRepository(ref).delete({});
await this.transactionManager.getRepository(ref).deleteAll();
}
}
}