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 c8dd8eca3e6b851e730aeffef7c52ee0678f12b8
parent 9b9c23e092b35359cd1a249c84d766bec7456a92
Author: Marcel <mtrnord1@gmail.com>
Date:   Wed, 30 Nov 2016 10:07:21 +0100

fix bug

Diffstat:
Mindex.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js @@ -68,7 +68,7 @@ io.on('connection', function(socket){ var local_asset = key["name"] io.emit('AupdateStatus', 'local'); }else { - if (_.findIndex(assets, key) != assets.length-1) { + if (_.findIndex(assets, key) == assets.length-1) { console.log("not local"); io.emit('AupdateStatus', 'NOTlocal'); }