Skip to content

Commit f76489a

Browse files
committed
Merge branch 'dev' of https://github.com/terminusdb/terminus-client into dev
2 parents 08fd425 + 456e274 commit f76489a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/connectionConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ConnectionConfig.prototype.copy = function() {
7373
ConnectionConfig.prototype.update = function(params) {
7474
if (!params) return
7575
const orgID = params.organization || params.user
76-
console.log("orgID",orgID,params)
76+
//console.log("orgID",orgID,params)
7777
this.setOrganization(orgID)
7878
if (typeof params.credential !== 'undefined')this.setTokenParameter(params.credential)
7979
if (typeof params.db !== 'undefined') this.setDB(params.db)
@@ -119,7 +119,7 @@ ConnectionConfig.prototype.apiURL = function() {
119119
* @returns {string | boolean}
120120
*/
121121
ConnectionConfig.prototype.db = function() {
122-
if(!this.dbid) throw new Error('Invalid database name');
122+
if(!this.dbid) return false//throw new Error('Invalid database name');
123123
return this.dbid
124124
}
125125

lib/woqlClient copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ WOQLClient.prototype.connect = function(params) {
357357
WOQLClient.prototype.createDatabase = function(dbId, dbDetails, orgId) {
358358

359359
orgId = orgId || this.user_organization()
360-
console.log("createDatabase", orgId)
360+
//console.log("createDatabase", orgId)
361361
this.organization(orgId)
362362
if (dbId) {
363363
this.db(dbId)

0 commit comments

Comments
 (0)