Skip to content

Commit 3674d7c

Browse files
committed
fixing delete csv api call
1 parent 01ec0c5 commit 3674d7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/woqlClient.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ WOQLClient.prototype.getCSV = function(csvName, download, gtype, gid) {
482482
* Deletes a csv into the specified path
483483
*
484484
* @param {array} csvName is an array of csv file names
485+
* @param {string} commitMsg Textual message describing the reason for the delete
485486
* @param {string} gtype type of graph |instance|schema|inference|
486487
* @param {string} gid TerminusDB Graph ID to update, main is the default value
487488
* @return {Promise} An API success message
@@ -491,6 +492,7 @@ WOQLClient.prototype.getCSV = function(csvName, download, gtype, gid) {
491492
let commit = this.generateCommitInfo(commitMsg)
492493
let options = {}, filePath
493494
options.name=csvName;
495+
options.commit_info=commit
494496
return this.dispatch(CONST.DELETE_CSV, this.connectionConfig.csvURL(gtype, gid), options).then(results => {
495497
return results;
496498
})

0 commit comments

Comments
 (0)