mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: bug fix
This commit is contained in:
1 parent
1d721bf349
commit
0517d9775a
1 file changed
+2
-1
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user