Skip to content

Commit

Permalink
Ensure transactions are completed
Browse files Browse the repository at this point in the history
Transactions were left open when using REST + :queries frame
  • Loading branch information
pe4cey committed Nov 2, 2016
1 parent 2708c69 commit 2fa9811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/scripts/services/Server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ angular.module('neo4jApp.services')
that = @
cluster.forEach((member) ->
s = that.transaction({
path: '/commit'
addAuthHeader: yes,
host: member.address,
statements: [{
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/services/UtilityREST.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ angular.module('neo4jApp.services')
getClusterOverview: ->
that = @
q = $q.defer()
Server.transaction(Server.buildStatement("CALL dbms.cluster.overview()"))
Server.cypher('', { query: 'CALL dbms.cluster.overview()' })
.then((r) ->
cluster = Utils.fakeSingleInstanceCluster r, that.getHost, $location.protocol()
return q.reject r unless cluster
Expand Down

0 comments on commit 2fa9811

Please sign in to comment.