From 8533950663a26469d64385cb9d6994662ba32a0c Mon Sep 17 00:00:00 2001 From: william mantly Date: Fri, 24 Jun 2016 12:16:32 -0400 Subject: [PATCH] index --- routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index 003e0e0..10d0404 100644 --- a/routes/api.js +++ b/routes/api.js @@ -100,7 +100,7 @@ var workers = (function(){ doapi.dropletsByTag('clworker', function(data){ data = JSON.parse(data); data['droplets'].forEach(function(worker){ - if(worker.id in currentIDs) return false; + if(~currentIDs.indexOf(worker.id)) return false; console.log('found old droplet, killing it'); doapi.dropletDestroy(worker.id, function(){});