From 6d1d4a34ce7a1000b1a3a9dad267d6ece01d737b Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 9 Dec 2020 13:39:18 +0100 Subject: [PATCH] MOBILE-3320 core: Standarize "initialize" usage --- src/core/initializers/initialize-databases.ts | 12 ++++++------ src/core/services/app.ts | 4 ++-- src/core/services/config.ts | 4 ++-- src/core/services/cron.ts | 4 ++-- src/core/services/filepool.ts | 4 ++-- src/core/services/local-notifications.ts | 4 ++-- src/core/services/sites.ts | 4 ++-- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/core/initializers/initialize-databases.ts b/src/core/initializers/initialize-databases.ts index 9772871af..67b15aca9 100644 --- a/src/core/initializers/initialize-databases.ts +++ b/src/core/initializers/initialize-databases.ts @@ -21,11 +21,11 @@ import { CoreSites } from '@services/sites'; export default async function(): Promise { await Promise.all([ - CoreApp.instance.initialiseDatabase(), - CoreConfig.instance.initialiseDatabase(), - CoreCronDelegate.instance.initialiseDatabase(), - CoreFilepool.instance.initialiseDatabase(), - CoreLocalNotifications.instance.initialiseDatabase(), - CoreSites.instance.initialiseDatabase(), + CoreApp.instance.initializeDatabase(), + CoreConfig.instance.initializeDatabase(), + CoreCronDelegate.instance.initializeDatabase(), + CoreFilepool.instance.initializeDatabase(), + CoreLocalNotifications.instance.initializeDatabase(), + CoreSites.instance.initializeDatabase(), ]); } diff --git a/src/core/services/app.ts b/src/core/services/app.ts index 66fbc8e8d..d14d121a8 100644 --- a/src/core/services/app.ts +++ b/src/core/services/app.ts @@ -85,9 +85,9 @@ export class CoreAppProvider { } /** - * Initialise database. + * Initialize database. */ - async initialiseDatabase(): Promise { + async initializeDatabase(): Promise { await this.db.createTableFromSchema(SCHEMA_VERSIONS_TABLE_SCHEMA); this.resolveSchemaVersionsManager({ diff --git a/src/core/services/config.ts b/src/core/services/config.ts index a39e593ba..edc5e22d1 100644 --- a/src/core/services/config.ts +++ b/src/core/services/config.ts @@ -34,9 +34,9 @@ export class CoreConfigProvider { } /** - * Initialise database. + * Initialize database. */ - async initialiseDatabase(): Promise { + async initializeDatabase(): Promise { try { await CoreApp.instance.createTablesFromSchema(APP_SCHEMA); } catch (e) { diff --git a/src/core/services/cron.ts b/src/core/services/cron.ts index c30524cee..2ccc6e868 100644 --- a/src/core/services/cron.ts +++ b/src/core/services/cron.ts @@ -58,9 +58,9 @@ export class CoreCronDelegateService { } /** - * Initialise database. + * Initialize database. */ - async initialiseDatabase(): Promise { + async initializeDatabase(): Promise { try { await CoreApp.instance.createTablesFromSchema(APP_SCHEMA); } catch (e) { diff --git a/src/core/services/filepool.ts b/src/core/services/filepool.ts index a82ae02d0..974225eed 100644 --- a/src/core/services/filepool.ts +++ b/src/core/services/filepool.ts @@ -101,9 +101,9 @@ export class CoreFilepoolProvider { } /** - * Initialise database. + * Initialize database. */ - async initialiseDatabase(): Promise { + async initializeDatabase(): Promise { try { await CoreApp.instance.createTablesFromSchema(APP_SCHEMA); } catch (e) { diff --git a/src/core/services/local-notifications.ts b/src/core/services/local-notifications.ts index 7a60f3ded..5bd1c3ba2 100644 --- a/src/core/services/local-notifications.ts +++ b/src/core/services/local-notifications.ts @@ -69,9 +69,9 @@ export class CoreLocalNotificationsProvider { } /** - * Initialise database. + * Initialize database. */ - async initialiseDatabase(): Promise { + async initializeDatabase(): Promise { try { await CoreApp.instance.createTablesFromSchema(APP_SCHEMA); } catch (e) { diff --git a/src/core/services/sites.ts b/src/core/services/sites.ts index 7c6c6ac16..36aa71550 100644 --- a/src/core/services/sites.ts +++ b/src/core/services/sites.ts @@ -94,9 +94,9 @@ export class CoreSitesProvider { } /** - * Initialise database. + * Initialize database. */ - async initialiseDatabase(): Promise { + async initializeDatabase(): Promise { try { await CoreApp.instance.createTablesFromSchema(APP_SCHEMA); } catch (e) {