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 3d5e6379a9451328139a64a198f9282b743a8df1
parent 53784ab1e21de4560893f0751bda43a796ae09d5
Author: Marcel <mtrnord1@gmail.com>
Date:   Wed, 30 Nov 2016 10:04:05 +0100

some debugging

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

diff --git a/index.js b/index.js @@ -62,19 +62,17 @@ io.on('connection', function(socket){ var version = release["tag_name"] var assets = release["assets"] console.log("request made"); - x = 0; console.log("Länge" + assets.length); _.find(assets, function (key) { if (key["name"] == 'local') { var local_asset = key["name"] io.emit('AupdateStatus', 'local'); }else { - if (!x == assets.length) { + if (_.findIndex(assets, key) != assets.length) { console.log("not local"); io.emit('AupdateStatus', 'NOTlocal'); } - console.log("Länge X " + x); - x + 1; + console.log("Länge X " + _.findIndex(assets, key)); } }) }else {