Remove undefine's check as the options will need to be provided anyways...
This commit is contained in:
parent
6663b42903
commit
8f68923008
|
@ -103,8 +103,6 @@ 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 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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user