Skip to content

Commit

Permalink
Need to fetch the AICs for multi
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan219 committed Jul 5, 2017
1 parent d932a59 commit 8073ccf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/models/rabbitmq/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ RabbitMQ.prototype.createCluster = function (data) {
}

RabbitMQ.prototype.deleteCluster = function (data) {
this._publisher.publishTask('cluster.delete', data)
return this._publisher.publishTask('cluster.delete', data)
}

RabbitMQ.prototype.updateCluster = function (data) {
Expand Down
5 changes: 4 additions & 1 deletion lib/models/services/cluster-config-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,10 @@ module.exports = class ClusterConfigService {
})
log.info('called')
return ClusterConfigService.findAllRelatedClusters(clusterId)
.each((cluster) => rabbitMQ.deleteCluster(cluster))
.map((cluster) => AutoIsolationConfig.findByIdAndAssert(cluster.autoIsolationConfigId))
.each((cluster) => {
return rabbitMQ.deleteCluster({ cluster: { id: cluster.id } })
})
}

/**
Expand Down

0 comments on commit 8073ccf

Please sign in to comment.