We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b02e13 commit 5756184Copy full SHA for 5756184
lib/connectionConfig.js
@@ -479,6 +479,7 @@ ConnectionConfig.prototype.queryURL = function () {
479
* @returns {string}
480
*/
481
ConnectionConfig.prototype.log = function () {
482
+ if (this.db() === this.system_db) return this.dbBase('log');
483
return this.branchBase('log');
484
};
485
@@ -735,6 +736,9 @@ ConnectionConfig.prototype.queryParameter = function (params) {
735
736
737
ConnectionConfig.prototype.jsonSchemaURL = function (params) {
738
const paramsStr = this.queryParameter(params);
739
+ if (this.db() === this.system_db) {
740
+ return this.dbBase('schema') + paramsStr;
741
+ }
742
return this.branchBase('schema') + paramsStr;
743
744
0 commit comments