Repository: ignite Updated Branches: refs/heads/ignite-843-rc2 3099e6b64 -> 62fc8e738
IGNITE-843 Minor fix. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/62fc8e73 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/62fc8e73 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/62fc8e73 Branch: refs/heads/ignite-843-rc2 Commit: 62fc8e738ef4a76eebe2147ea50078ce11a95d0a Parents: 3099e6b Author: Andrey <[email protected]> Authored: Tue Feb 16 16:53:10 2016 +0700 Committer: Andrey <[email protected]> Committed: Tue Feb 16 16:53:10 2016 +0700 ---------------------------------------------------------------------- modules/control-center-web/src/main/js/serve/routes/domains.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/62fc8e73/modules/control-center-web/src/main/js/serve/routes/domains.js ---------------------------------------------------------------------- diff --git a/modules/control-center-web/src/main/js/serve/routes/domains.js b/modules/control-center-web/src/main/js/serve/routes/domains.js index 196a926..6d8b87f 100644 --- a/modules/control-center-web/src/main/js/serve/routes/domains.js +++ b/modules/control-center-web/src/main/js/serve/routes/domains.js @@ -222,7 +222,7 @@ module.exports.factory = (_, express, mongo) => { .then(() => mongo.Cache.find({$and: [{space: {$in: spaceIds}}, {demo: true}]}).lean().exec()) .then((caches) => cacheIds = _.map(caches, (cache) => cache._id)) .then(() => mongo.Cluster.update({caches: {$in: cacheIds}}, {$pull: {caches: {$in: cacheIds}}}, {multi: true}).exec()) - .then(() => mongo.DomainModel.update({$and: [{caches: {$in: cacheIds}}, {demo: false}]}, {$pull: {$in: {caches: cacheIds}}}, {multi: true}).exec()) + .then(() => mongo.DomainModel.update({caches: {$in: cacheIds}}, {$pull: {caches: {$in: cacheIds}}}, {multi: true}).exec()) .then(() => mongo.Cache.remove({$and: [{space: {$in: spaceIds}}, {demo: true}]}).exec()) .then(() => res.sendStatus(200)) .catch((err) => mongo.handleError(res, err));
