fix(core): update
This commit is contained in:
parent
ab1799f4f2
commit
e56def621c
@ -20,7 +20,7 @@ let testDb = new smartdata.SmartdataDb({
|
|||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should establish a connection to the rethink Db cluster', async () => {
|
tap.test('should establish a connection to the rethink Db cluster', async () => {
|
||||||
await testDb.connect();
|
await testDb.init();
|
||||||
});
|
});
|
||||||
|
|
||||||
// =======================================
|
// =======================================
|
||||||
|
@ -44,7 +44,7 @@ export class SmartdataDb {
|
|||||||
/**
|
/**
|
||||||
* connects to the database that was specified during instance creation
|
* connects to the database that was specified during instance creation
|
||||||
*/
|
*/
|
||||||
async connect(): Promise<any> {
|
async init(): Promise<any> {
|
||||||
let finalConnectionUrl = this.smartdataOptions.mongoDbUrl;
|
let finalConnectionUrl = this.smartdataOptions.mongoDbUrl;
|
||||||
if (this.smartdataOptions.mongoDbPass) {
|
if (this.smartdataOptions.mongoDbPass) {
|
||||||
finalConnectionUrl = mongoHelpers.addPassword(
|
finalConnectionUrl = mongoHelpers.addPassword(
|
||||||
|
Loading…
Reference in New Issue
Block a user