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}@`;
|
if (opts.username) mongourl += `${opts.username}:${opts.password}@`;
|
||||||
mongourl += `${opts.host}:${opts.port}/${opts.name}`;
|
mongourl += `${opts.host}:${opts.port}/${opts.name}`;
|
||||||
if (opts.url) mongourl = opts.url;
|
if (opts.url) mongourl = opts.url;
|
||||||
|
if (opts.uri) mongourl = opts.uri;
|
||||||
return mongourl;
|
return mongourl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "4.7.5",
|
"version": "4.7.6",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/plugin-api",
|
"main": "src/plugin-api",
|
||||||
"module": "src/plugin-api",
|
"module": "src/plugin-api",
|
||||||
|
|||||||
Reference in new issue
Block a user