Skip to content

Commit 5756184

Browse files
committed
fix schem url for system dayabase
1 parent 5b02e13 commit 5756184

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/connectionConfig.js

+4
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ ConnectionConfig.prototype.queryURL = function () {
479479
* @returns {string}
480480
*/
481481
ConnectionConfig.prototype.log = function () {
482+
if (this.db() === this.system_db) return this.dbBase('log');
482483
return this.branchBase('log');
483484
};
484485

@@ -735,6 +736,9 @@ ConnectionConfig.prototype.queryParameter = function (params) {
735736

736737
ConnectionConfig.prototype.jsonSchemaURL = function (params) {
737738
const paramsStr = this.queryParameter(params);
739+
if (this.db() === this.system_db) {
740+
return this.dbBase('schema') + paramsStr;
741+
}
738742
return this.branchBase('schema') + paramsStr;
739743
};
740744

0 commit comments

Comments
 (0)