Skip to content

Commit e2a66ce

Browse files
committed
fixing delete database
1 parent 5cdda05 commit e2a66ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/woqlClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ WOQLClient.prototype.deleteDatabase = function(dbId, orgId, force) {
369369
this.organization(orgIdValue)
370370
let payload = force ? {force: true} : null
371371
if (dbId && this.db(dbId)) {
372-
return this.dispatch(CONST.DATABASE, this.connectionConfig.dbURL(), payload)
372+
return this.dispatch(CONST.DELETE, this.connectionConfig.dbURL(), payload)
373373
}
374374
let errmsg = `Delete database parameter error - you must specify a valid database id - ${dbId} is invalid`
375375
return Promise.reject(

0 commit comments

Comments
 (0)