Skip to content

Commit 791ed8c

Browse files
authored
Merge pull request #287 from terminusdb/fix-type
Fix type
2 parents 9a7b72e + 88dd93c commit 791ed8c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

RELEASE_NOTES.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# TerminusDB Client v10.0.30
22
## Fixes 🛠
3+
* Fix schema endpoint for system database
4+
# TerminusDB Client v10.0.30
5+
## Fixes 🛠
36
* Fix DiffObject type definition
47

58
# TerminusDB Client v10.0.29

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

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@terminusdb/terminusdb-client",
3-
"version": "10.0.30",
3+
"version": "10.0.31",
44
"description": "TerminusDB client library",
55
"main": "index.js",
66
"types": "./dist/typescript/index.d.ts",

0 commit comments

Comments
 (0)