From 188066b26f6fa723a9354d3f7d0b3f2c5a1353be Mon Sep 17 00:00:00 2001 From: Ardalan Samimi Date: Tue, 3 Jul 2018 15:24:51 +0200 Subject: [PATCH] Fixed version check --- raspbot/application/models/Raspbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspbot/application/models/Raspbot.js b/raspbot/application/models/Raspbot.js index cc45d97..4772f18 100644 --- a/raspbot/application/models/Raspbot.js +++ b/raspbot/application/models/Raspbot.js @@ -13,7 +13,7 @@ exports.checkForUpdate = () => { const compare = require('compare-versions'); let response = { heading: '', version: version, isNewer: false, changes: '' } - if (compare(json.version, version) < 1) { + if (compare(json.version, version) > 0) { response.version = json.version; response.isNewer = true; response.changes = json.changes;