Skip to content

Commit

Permalink
Merge pull request #287 from terminusdb/fix-type
Browse files Browse the repository at this point in the history
Fix type
  • Loading branch information
KittyJose authored Jul 17, 2023
2 parents 9a7b72e + 88dd93c commit 791ed8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# TerminusDB Client v10.0.30
## Fixes 🛠
* Fix schema endpoint for system database
# TerminusDB Client v10.0.30
## Fixes 🛠
* Fix DiffObject type definition

# TerminusDB Client v10.0.29
Expand Down
4 changes: 4 additions & 0 deletions lib/connectionConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ ConnectionConfig.prototype.queryURL = function () {
* @returns {string}
*/
ConnectionConfig.prototype.log = function () {
if (this.db() === this.system_db) return this.dbBase('log');
return this.branchBase('log');
};

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

ConnectionConfig.prototype.jsonSchemaURL = function (params) {
const paramsStr = this.queryParameter(params);
if (this.db() === this.system_db) {
return this.dbBase('schema') + paramsStr;
}
return this.branchBase('schema') + paramsStr;
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@terminusdb/terminusdb-client",
"version": "10.0.30",
"version": "10.0.31",
"description": "TerminusDB client library",
"main": "index.js",
"types": "./dist/typescript/index.d.ts",
Expand Down

0 comments on commit 791ed8c

Please sign in to comment.