[database][js] rename internal property

This commit is contained in:
Salakar 2018-08-16 13:11:34 +01:00
parent e800756bfa
commit 1b309d1dae
1 changed files with 4 additions and 4 deletions

View File

@ -24,14 +24,14 @@ export const NAMESPACE = 'database';
* @class Database
*/
export default class Database extends ModuleBase {
_databaseURL: string;
_offsetRef: Reference;
_serverTimeOffset: number;
_transactionHandler: TransactionHandler;
_serviceUrl: string;
constructor(appOrCustomUrl: App | string, customUrl?: string) {
let app;
let url;
@ -60,7 +60,7 @@ export default class Database extends ModuleBase {
);
this._serverTimeOffset = 0;
this._serviceUrl = serviceUrl;
this._databaseURL = url;
this._transactionHandler = new TransactionHandler(this);
if (app.options.persistence) {
@ -115,7 +115,7 @@ export default class Database extends ModuleBase {
* @returns {string}
*/
get databaseUrl(): string {
return this._serviceUrl;
return this._databaseURL;
}
}