From f8cba471fdb2ec34dbe4e6a2d4b0d0b505ceef84 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 16 Feb 2022 14:26:04 +0100 Subject: [PATCH] MOBILE-3833 core: Fix current site table migration --- src/core/services/sites.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/services/sites.ts b/src/core/services/sites.ts index 1dedfd9cf..128eb25f3 100644 --- a/src/core/services/sites.ts +++ b/src/core/services/sites.ts @@ -1792,6 +1792,8 @@ export class CoreSitesProvider { await CoreConfig.set('current_site_id', siteId); await CoreApp.deleteTableSchema('current_site'); await db.dropTable('current_site'); + } catch { + // There was no current site, silence the error. } finally { await CoreConfig.set('current_site_migrated', 1); }