Fixed issue where getting current-position returned update_required

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-06 14:58:10 +01:00
parent 01480b74de
commit 0dcdd617c3

View File

@@ -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",