Fix sendDelete call to provide empty data so header is correct

This commit is contained in:
Richard Shephard 2019-05-16 16:18:09 +02:00
parent 4d981596eb
commit 6663b42903

View File

@ -105,7 +105,7 @@ ProjectionsClient.prototype.updateQuery = function(httpEndPoint, name, query, us
ProjectionsClient.prototype.delete = function(httpEndPoint, name, deleteEmittedStreams, deleteStateStream, deleteCheckpointStream, userCredentials) { ProjectionsClient.prototype.delete = function(httpEndPoint, name, deleteEmittedStreams, deleteStateStream, deleteCheckpointStream, userCredentials) {
const stateStream = (deleteStateStream === undefined) ? false : deleteStateStream; const stateStream = (deleteStateStream === undefined) ? false : deleteStateStream;
const checkpointStream = (deleteCheckpointStream === undefined) ? false : deleteCheckpointStream; 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) { ProjectionsClient.prototype.request = function(method, _url, data, userCredentials, expectedCode) {