Skip to content

Commit

Permalink
Merge pull request #309 from pe4cey/noisy-logs
Browse files Browse the repository at this point in the history
Ensure transactions are completed when using the REST api
  • Loading branch information
eve-bright authored Nov 4, 2016
2 parents f2fb9be + 2fa9811 commit 0c58816
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 0c58816

Please sign in to comment.