forked from EVOgeek/Vmeda.Online
		
	Merge pull request #3124 from NoelDeMartin/MOBILE-3833-fix-sites
MOBILE-3833 core: Fix current site table migration
This commit is contained in:
		
						commit
						53c4f6b297
					
				| @ -1823,6 +1823,8 @@ export class CoreSitesProvider { | |||||||
|             await CoreConfig.set(CORE_SITE_CURRENT_SITE_ID_CONFIG, siteId); |             await CoreConfig.set(CORE_SITE_CURRENT_SITE_ID_CONFIG, siteId); | ||||||
|             await CoreApp.deleteTableSchema('current_site'); |             await CoreApp.deleteTableSchema('current_site'); | ||||||
|             await db.dropTable('current_site'); |             await db.dropTable('current_site'); | ||||||
|  |         } catch { | ||||||
|  |             // There was no current site, silence the error.
 | ||||||
|         } finally { |         } finally { | ||||||
|             await CoreConfig.set('current_site_migrated', 1); |             await CoreConfig.set('current_site_migrated', 1); | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user