fix: db sync before app upgrade

This commit is contained in:
chenos 2022-12-19 00:00:58 +08:00
parent e481c2b59b
commit 627a8b264b

View File

@ -84,6 +84,7 @@ export class PresetNocoBase extends Plugin {
{},
);
await this.app.reload();
await this.app.db.sync();
});
this.app.on('beforeInstall', async () => {
console.log(`Initialize all built-in plugins`);