Merge branch 'main' into next

This commit is contained in:
GitHub Actions Bot 2024-08-07 10:29:40 +00:00
commit fb40563e52

View File

@ -165,7 +165,13 @@ export class Dumper extends AppMigrator {
}
backUpStorageDir() {
return path.resolve(process.cwd(), 'storage', 'backups');
const paths = [process.cwd(), 'storage', 'backups'];
if (this.app.name !== 'main') {
paths.push(this.app.name);
}
return path.resolve(...paths);
}
async allBackUpFilePaths(options?: { includeInProgress?: boolean; dir?: string }) {