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