ls-manual-update

Checks for manual update of ls-vertretunsplan-desktop and tells outdated clients
git clone git://archive.git.mtrnord.blog/MTRNord/ls-manual-update.git
Log | Files | Refs | LICENSE

commit 02210d2266a97193bdf0a9f6e2fe7c5feb177fea
parent 2499446c74d75533dd0db8e71d9406de708717bd
Author: Marcel <mtrnord1@gmail.com>
Date:   Wed, 30 Nov 2016 09:46:38 +0100

some debugging

Diffstat:
Mindex.js | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js @@ -34,14 +34,18 @@ io.on('connection', function(socket){ var release = jsonfile.readFileSync("cache.json") var version = release["tag_name"] var assets = release["assets"] + x = 0; _.find(assets, function (key) { if (key["name"] == 'local') { var local_asset = key["name"] io.emit('AupdateStatus', 'local'); }else { - console.log("not local"); - io.emit('AupdateStatus', 'NOTlocal'); + if (!x < assets.length) { + console.log("not local"); + io.emit('AupdateStatus', 'NOTlocal'); + } } + x + 1; }) } else { console.log("aquire file");