fix(core): update
This commit is contained in:
@ -2,9 +2,9 @@ import * as plugins from './smartmongo.plugins';
|
||||
|
||||
export class SmartMongo {
|
||||
// STATIC
|
||||
public static async createInstance() {
|
||||
public static async createAndInit() {
|
||||
const smartMongoInstance = new SmartMongo();
|
||||
await smartMongoInstance.readyPromise;
|
||||
await smartMongoInstance.init();
|
||||
return smartMongoInstance;
|
||||
}
|
||||
|
||||
@ -14,7 +14,6 @@ export class SmartMongo {
|
||||
public mongod: plugins.mongoPlugin.MongoMemoryServer;
|
||||
|
||||
constructor() {
|
||||
this.init();
|
||||
}
|
||||
|
||||
public async init() {
|
||||
|
Reference in New Issue
Block a user