MOBILE-3320 core: Standarize "initialize" usage

main
Noel De Martin 2020-12-09 13:39:18 +01:00
parent 152caaf707
commit 6d1d4a34ce
7 changed files with 18 additions and 18 deletions

View File

@ -21,11 +21,11 @@ import { CoreSites } from '@services/sites';
export default async function(): Promise<void> {
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(),
]);
}

View File

@ -85,9 +85,9 @@ export class CoreAppProvider {
}
/**
* Initialise database.
* Initialize database.
*/
async initialiseDatabase(): Promise<void> {
async initializeDatabase(): Promise<void> {
await this.db.createTableFromSchema(SCHEMA_VERSIONS_TABLE_SCHEMA);
this.resolveSchemaVersionsManager({

View File

@ -34,9 +34,9 @@ export class CoreConfigProvider {
}
/**
* Initialise database.
* Initialize database.
*/
async initialiseDatabase(): Promise<void> {
async initializeDatabase(): Promise<void> {
try {
await CoreApp.instance.createTablesFromSchema(APP_SCHEMA);
} catch (e) {

View File

@ -58,9 +58,9 @@ export class CoreCronDelegateService {
}
/**
* Initialise database.
* Initialize database.
*/
async initialiseDatabase(): Promise<void> {
async initializeDatabase(): Promise<void> {
try {
await CoreApp.instance.createTablesFromSchema(APP_SCHEMA);
} catch (e) {

View File

@ -101,9 +101,9 @@ export class CoreFilepoolProvider {
}
/**
* Initialise database.
* Initialize database.
*/
async initialiseDatabase(): Promise<void> {
async initializeDatabase(): Promise<void> {
try {
await CoreApp.instance.createTablesFromSchema(APP_SCHEMA);
} catch (e) {

View File

@ -69,9 +69,9 @@ export class CoreLocalNotificationsProvider {
}
/**
* Initialise database.
* Initialize database.
*/
async initialiseDatabase(): Promise<void> {
async initializeDatabase(): Promise<void> {
try {
await CoreApp.instance.createTablesFromSchema(APP_SCHEMA);
} catch (e) {

View File

@ -94,9 +94,9 @@ export class CoreSitesProvider {
}
/**
* Initialise database.
* Initialize database.
*/
async initialiseDatabase(): Promise<void> {
async initializeDatabase(): Promise<void> {
try {
await CoreApp.instance.createTablesFromSchema(APP_SCHEMA);
} catch (e) {