From 6663b42903aad237c78afe27d0b7029c51024caf Mon Sep 17 00:00:00 2001 From: Richard Shephard Date: Thu, 16 May 2019 16:18:09 +0200 Subject: [PATCH] Fix sendDelete call to provide empty data so header is correct --- src/projections/projectionsClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/projections/projectionsClient.js b/src/projections/projectionsClient.js index 2808c74..dfe51d0 100644 --- a/src/projections/projectionsClient.js +++ b/src/projections/projectionsClient.js @@ -105,7 +105,7 @@ ProjectionsClient.prototype.updateQuery = function(httpEndPoint, name, query, us ProjectionsClient.prototype.delete = function(httpEndPoint, name, deleteEmittedStreams, deleteStateStream, deleteCheckpointStream, userCredentials) { const stateStream = (deleteStateStream === undefined) ? false : deleteStateStream; const checkpointStream = (deleteCheckpointStream === undefined) ? false : deleteCheckpointStream; - return this.sendDelete(httpEndPoint + '/projection/' + name + '?deleteStateStream=' + stateStream + '&deleteCheckpointStream' + checkpointStream + '&deleteEmittedStreams=' + deleteEmittedStreams, userCredentials, HTTP_OK); + return this.sendDelete(httpEndPoint + '/projection/' + name + '?deleteStateStream=' + stateStream + '&deleteCheckpointStream' + checkpointStream + '&deleteEmittedStreams=' + deleteEmittedStreams, '', userCredentials, HTTP_OK); }; ProjectionsClient.prototype.request = function(method, _url, data, userCredentials, expectedCode) {