fix sub update

This commit is contained in:
karl.hudgell 2020-07-04 11:27:03 +01:00
parent a96ea18f7a
commit eb982c8b65

View File

@ -14,7 +14,7 @@ module.exports = {
status = 0
}
subs.forEach(function (element, index) {
if (element.SUB.toLowerCase() === sub) {
if (element.SUB.toLowerCase() === sub.toLowerCase()) {
subs[index].STATUS = status; //set the value
}
})