commit c8dd8eca3e6b851e730aeffef7c52ee0678f12b8
parent 9b9c23e092b35359cd1a249c84d766bec7456a92
Author: Marcel <mtrnord1@gmail.com>
Date: Wed, 30 Nov 2016 10:07:21 +0100
fix bug
Diffstat:
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');
}