fix: upgrade app after restore (#3680)

This commit is contained in:
ChengLei Shao 2024-03-12 11:34:22 +08:00 committed by GitHub
parent 4a346a4119
commit 94cbbf93b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 6 deletions

View File

@ -62,6 +62,6 @@ export default function addRestoreCommand(app: Application) {
groups,
});
await app.restart();
await app.upgrade();
});
}

View File

@ -79,7 +79,6 @@ export class Restorer extends AppMigrator {
await this.checkMeta();
await this.importCollections(options);
await this.importDb(options);
await this.upgradeApp();
await this.clearWorkDir();
}
@ -398,8 +397,4 @@ export class Restorer extends AppMigrator {
}
}
}
async upgradeApp() {
await this.app.runCommand('upgrade');
}
}