From e56def621c612b79ccda3174d23603f40e645333 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 8 Jan 2019 19:55:13 +0100 Subject: [PATCH] fix(core): update --- test/test.ts | 2 +- ts/smartdata.classes.db.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.ts b/test/test.ts index 2cc7dae..d428bf9 100644 --- a/test/test.ts +++ b/test/test.ts @@ -20,7 +20,7 @@ let testDb = new smartdata.SmartdataDb({ }); tap.test('should establish a connection to the rethink Db cluster', async () => { - await testDb.connect(); + await testDb.init(); }); // ======================================= diff --git a/ts/smartdata.classes.db.ts b/ts/smartdata.classes.db.ts index 1af1165..9b8aaad 100644 --- a/ts/smartdata.classes.db.ts +++ b/ts/smartdata.classes.db.ts @@ -44,7 +44,7 @@ export class SmartdataDb { /** * connects to the database that was specified during instance creation */ - async connect(): Promise { + async init(): Promise { let finalConnectionUrl = this.smartdataOptions.mongoDbUrl; if (this.smartdataOptions.mongoDbPass) { finalConnectionUrl = mongoHelpers.addPassword(