core: mongodb config fallback

This commit is contained in:
undefined committed 2022-04-04 22:08:55 +08:00
1 parent 4fc08f3ba6
commit 1d721bf349
1 file changed
+1 -1
+1 -1
View File
@@ -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');