fix: db sync before app upgrade
This commit is contained in:
		
							parent
							
								
									e481c2b59b
								
							
						
					
					
						commit
						627a8b264b
					
				@ -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`);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user