Skip to content

Commit 464e18a

Browse files
Merge pull request #266 from terminusdb/fix_reset_call
Do not transform commit ids in resetBranch
2 parents baedbb3 + d03b5f5 commit 464e18a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/woqlClient.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -750,11 +750,10 @@ WOQLClient.prototype.squashBranch = function (branchId, commitMsg) {
750750
WOQLClient.prototype.resetBranch = function (branchId, commitId) {
751751
if (commitId && branchId) {
752752
// eslint-disable-next-line camelcase
753-
const commit_descriptor = this.generateCommitDescriptor(commitId);
754753
return this.dispatch(
755754
CONST.RESET_BRANCH,
756755
this.connectionConfig.resetBranchUrl(branchId),
757-
commit_descriptor,
756+
{ commit_descriptor: commitId },
758757
);
759758
}
760759
const errmsg = 'Branch parameter error - you must specify a valid new branch id and a commit message';

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)