fix(core): update
This commit is contained in:
parent
601651c81a
commit
9c5f5ea44e
@ -2,9 +2,9 @@ import * as plugins from './smartmongo.plugins';
|
|||||||
|
|
||||||
export class SmartMongo {
|
export class SmartMongo {
|
||||||
// STATIC
|
// STATIC
|
||||||
public static async createAndInit() {
|
public static async createAndStart() {
|
||||||
const smartMongoInstance = new SmartMongo();
|
const smartMongoInstance = new SmartMongo();
|
||||||
await smartMongoInstance.init();
|
await smartMongoInstance.start();
|
||||||
return smartMongoInstance;
|
return smartMongoInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ export class SmartMongo {
|
|||||||
constructor() {
|
constructor() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async init() {
|
public async start() {
|
||||||
this.mongod = await plugins.mongoPlugin.MongoMemoryServer.create();
|
this.mongod = await plugins.mongoPlugin.MongoMemoryServer.create();
|
||||||
this._readyDeferred.resolve();
|
this._readyDeferred.resolve();
|
||||||
console.log('mongod started');
|
console.log('mongod started');
|
||||||
|
Loading…
Reference in New Issue
Block a user