core: fix restore uri

This commit is contained in:
undefined committed 2023-02-15 17:22:31 +08:00
1 parent 7bce252391
commit 15c1048b5b
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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;
}