mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +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;
|
return mongourl;
|
||||||
}
|
}
|
||||||
|
|
||||||
async start(opts: MongoConfig = {}) {
|
async start(opts: MongoConfig) {
|
||||||
|
opts ||= {};
|
||||||
let mongourl = MongoService.buildUrl(opts);
|
let mongourl = MongoService.buildUrl(opts);
|
||||||
if (process.env.CI) {
|
if (process.env.CI) {
|
||||||
const { MongoMemoryServer } = require('mongodb-memory-server');
|
const { MongoMemoryServer } = require('mongodb-memory-server');
|
||||||
|
|||||||
Reference in new issue
Block a user