From 7819ea36b7efd7d8a43371c5c846b2fc1c9344b2 Mon Sep 17 00:00:00 2001
From: arshiam2 <arshiam2@illinois.edu>
Date: Sat, 1 Dec 2018 22:09:22 -0600
Subject: [PATCH] update

---
 cli/src/commands/get-stream.js | 3 ++-
 sfds/index.js                  | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/cli/src/commands/get-stream.js b/cli/src/commands/get-stream.js
index 125c6c4..237480a 100644
--- a/cli/src/commands/get-stream.js
+++ b/cli/src/commands/get-stream.js
@@ -31,8 +31,9 @@ module.exports.handler = handleErrors(async (argv: {}) => {
       fetch(target)
         .then(res => (res.text()))
         .then(data => {
-          if (data.action !== "DONE") {
+          if (data == "DONE") {
             // queue.push(json);
+            // console.log(data.act)
             process.exit()
           } else {
             console.log(data);
diff --git a/sfds/index.js b/sfds/index.js
index c410630..2fabb04 100644
--- a/sfds/index.js
+++ b/sfds/index.js
@@ -438,6 +438,7 @@ setInterval(function sync() {
           queue.push(json);
         } else {
           results.push(json.state)
+          console.log(results.length)
           console.log("result: " + json.state);
         }
       });
-- 
GitLab