mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix restore uri
This commit is contained in:
1 parent
7bce252391
commit
15c1048b5b
2 files changed
+2
-1
No files matched your search
@@ -30,6 +30,7 @@ function buildUrl(opts) {
|
||||
if (opts.username) mongourl += `${opts.username}:${opts.password}@`;
|
||||
mongourl += `${opts.host}:${opts.port}/${opts.name}`;
|
||||
if (opts.url) mongourl = opts.url;
|
||||
if (opts.uri) mongourl = opts.uri;
|
||||
return mongourl;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user