Skip to content

Commit

Permalink
Add restartPipeline to trustedsources and streams. (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smarker authored and c-w committed Mar 1, 2018
1 parent 0de184f commit 0f80c01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions project-fortis-services/src/resolvers/Settings/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ function addTrustedSources(args, res) { // eslint-disable-line no-unused-vars
});

cassandraConnector.executeBatchMutations(mutations)
.then(() => streamingController.restartPipeline())
.then(_ => { // eslint-disable-line no-unused-vars
resolve({
sources: args.input.sources
Expand All @@ -238,6 +239,7 @@ function removeTrustedSources(args, res) { // eslint-disable-line no-unused-vars
}));

cassandraConnector.executeBatchMutations(mutations)
.then(() => streamingController.restartPipeline())
.then(_ => { // eslint-disable-line no-unused-vars
resolve({
sources: args.input.sources
Expand Down Expand Up @@ -415,6 +417,7 @@ function removeStreams(args, res) { // eslint-disable-line no-unused-vars
}));

cassandraConnector.executeBatchMutations(mutations)
.then(() => streamingController.restartPipeline())
.then(_ => { // eslint-disable-line no-unused-vars
resolve({
streams
Expand Down

0 comments on commit 0f80c01

Please sign in to comment.