diff --git a/cli/src/commands/get-stream.js b/cli/src/commands/get-stream.js index 125c6c4959468fbc2e27f085047e1d17e70ba247..237480a8f454a3d209463b302f101a51830327f9 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 c410630c79301e9036c9bece1fcb1d7d557e74d1..2fabb047d4b077fb13893aa0a97a012e1f664164 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); } });