fix: upgrade app after restore (#3680)
This commit is contained in:
parent
4a346a4119
commit
94cbbf93b8
@ -62,6 +62,6 @@ export default function addRestoreCommand(app: Application) {
|
|||||||
groups,
|
groups,
|
||||||
});
|
});
|
||||||
|
|
||||||
await app.restart();
|
await app.upgrade();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,6 @@ export class Restorer extends AppMigrator {
|
|||||||
await this.checkMeta();
|
await this.checkMeta();
|
||||||
await this.importCollections(options);
|
await this.importCollections(options);
|
||||||
await this.importDb(options);
|
await this.importDb(options);
|
||||||
await this.upgradeApp();
|
|
||||||
await this.clearWorkDir();
|
await this.clearWorkDir();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -398,8 +397,4 @@ export class Restorer extends AppMigrator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async upgradeApp() {
|
|
||||||
await this.app.runCommand('upgrade');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user