From 8ffc16b1f78d8ce0448e0450f7dd706b280be9ac Mon Sep 17 00:00:00 2001
From: QuatZo <48104274+QuatZo@users.noreply.github.com>
Date: Thu, 19 Mar 2020 12:15:08 +0100
Subject: [PATCH] Fix Version Check Logic
Fixed logic behind checking a repo version.
---
index.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index 424752a..aa09296 100644
--- a/index.js
+++ b/index.js
@@ -39,10 +39,10 @@ module.exports = {
options.proxy.log({
name: options.name,
source: 'plugin',
- type: result.latest ? 'success' : 'info',
- message: result.latest
+ type: result.newest ? 'success' : 'info',
+ message: result.newest
? `You have the latest version v${result.current}.`
- : `Your current version is v${result.current} and the latest version is v${result.newest}. Click here to download the latest version.`
+ : `Your current version is v${result.current} and the latest version is v${result.latest}. Click here to download the latest version.`
});
})
.catch(error => {