core: bug fix

This commit is contained in:
undefined committed 2022-04-04 22:13:06 +08:00
1 parent 1d721bf349
commit 0517d9775a
1 file changed
+2 -1
+2 -1
View File
@@ -33,7 +33,8 @@ class MongoService implements BaseService {
return mongourl;
}
async start(opts: MongoConfig = {}) {
async start(opts: MongoConfig) {
opts ||= {};
let mongourl = MongoService.buildUrl(opts);
if (process.env.CI) {
const { MongoMemoryServer } = require('mongodb-memory-server');