From 0dcdd617c3aef38481261693fc3957c065689f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 6 Mar 2018 14:58:10 +0100 Subject: [PATCH] Fixed issue where getting current-position returned update_required --- server/handlers/io.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/handlers/io.js b/server/handlers/io.js index 260e9b69..148aff25 100644 --- a/server/handlers/io.js +++ b/server/handlers/io.js @@ -406,9 +406,8 @@ module.exports = function() { } } - if(coll == "" || coll == undefined || coll == null ||  - !obj.hasOwnProperty("channel") || typeof(obj.channel) != "string" || - obj.hasOwnProperty("pass") || typeof(obj.pass) != "string") { + if(!obj.hasOwnProperty("channel") || typeof(obj.channel) != "string" || + !obj.hasOwnProperty("pass") || typeof(obj.pass) != "string") { var result = { channel: { expected: "string",