From 9c5f5ea44ea027d42e8e217a1a3c15c02a9f18f1 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 20 Dec 2021 17:02:19 +0100 Subject: [PATCH] fix(core): update --- ts/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/index.ts b/ts/index.ts index 883ef3b..f9c21ce 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -2,9 +2,9 @@ import * as plugins from './smartmongo.plugins'; export class SmartMongo { // STATIC - public static async createAndInit() { + public static async createAndStart() { const smartMongoInstance = new SmartMongo(); - await smartMongoInstance.init(); + await smartMongoInstance.start(); return smartMongoInstance; } @@ -16,7 +16,7 @@ export class SmartMongo { constructor() { } - public async init() { + public async start() { this.mongod = await plugins.mongoPlugin.MongoMemoryServer.create(); this._readyDeferred.resolve(); console.log('mongod started');