Repository: ignite Updated Branches: refs/heads/ignite-843-rc2 6fc1865e5 -> 5158cc20d
IGNITE-843 Rework cluster remove. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/5158cc20 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/5158cc20 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/5158cc20 Branch: refs/heads/ignite-843-rc2 Commit: 5158cc20d49d14e9fbbe9875a153b8733606438a Parents: 6fc1865 Author: AKuznetsov <[email protected]> Authored: Mon Feb 15 17:55:33 2016 +0700 Committer: AKuznetsov <[email protected]> Committed: Mon Feb 15 17:55:33 2016 +0700 ---------------------------------------------------------------------- modules/control-center-web/src/main/js/serve/routes/igfs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/5158cc20/modules/control-center-web/src/main/js/serve/routes/igfs.js ---------------------------------------------------------------------- diff --git a/modules/control-center-web/src/main/js/serve/routes/igfs.js b/modules/control-center-web/src/main/js/serve/routes/igfs.js index 2a0aed4..c9ce238 100644 --- a/modules/control-center-web/src/main/js/serve/routes/igfs.js +++ b/modules/control-center-web/src/main/js/serve/routes/igfs.js @@ -111,7 +111,7 @@ module.exports.factory = function(_, express, mongo) { mongo.Space.find({$or: [{owner: userId}, {usedBy: {$elemMatch: {account: userId}}}]}) .then((spaces) => mongo.Cluster.update({space: {$in: spacesIds}}, {$pull: {igfss: igfsId}}, {multi: true})) - .then(mongo.Igfs.remove(req.body)) + .then(mongo.Igfs.remove(igfsId)) .then(() => res.sendStatus(200)) .catch((err) => { // TODO IGNITE-843 Send error to admin
