core: mongodb config fallback

pull/340/head
undefined 3 years ago
parent 4fc08f3ba6
commit 1d721bf349

@ -33,7 +33,7 @@ class MongoService implements BaseService {
return mongourl;
}
async start(opts: MongoConfig) {
async start(opts: MongoConfig = {}) {
let mongourl = MongoService.buildUrl(opts);
if (process.env.CI) {
const { MongoMemoryServer } = require('mongodb-memory-server');

Loading…
Cancel
Save