From 8717d19136cef4ab314c44aadff70d90ae0fda9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 28 Jun 2017 11:06:53 +0100 Subject: [PATCH] feat(portal-watch): don't filter by hash --- packages/portal-watch/lib/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/portal-watch/lib/index.js b/packages/portal-watch/lib/index.js index 817d1b09..84feccb4 100644 --- a/packages/portal-watch/lib/index.js +++ b/packages/portal-watch/lib/index.js @@ -129,7 +129,9 @@ module.exports = class Watcher { return setTimeout(() => { return updateService({ id: service.id, - instances: instances.filter(({ id }) => { return id !== instance.id; }) + instances: instances.filter(({ id }) => { + return id !== instance.id; + }) }); }, this._frequency * 4); })); @@ -192,7 +194,7 @@ module.exports = class Watcher { // assert that service exists const assertService = (deploymentGroupId) => { - this.getService({ serviceName, serviceHash: tags[HASH], deploymentGroupId }, handleError((service) => { + this.getService({ serviceName, deploymentGroupId }, handleError((service) => { if (!service) { console.error(`Service "${serviceName}" form DeploymentGroup "${deploymentGroupName}" for machine ${id} not found`); return;