mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 22:20:56 +00:00
fix(update): return if current version is higher than release
The version checker will report a "major update" if fxmanifest's version is higher than the latest release (a tag has not been pushed).
This commit is contained in:
1 parent
d80615bddc
commit
bdd4814f06
1 file changed
+1
-1
+1
-1
@@ -17,7 +17,7 @@ if (GetConvar('mysql_versioncheck', 'true') === 'true') {
|
|||||||
const latestVersion = release.tag_name.match(/(\d)\.(\d+)\.(\d+)/);
|
const latestVersion = release.tag_name.match(/(\d)\.(\d+)\.(\d+)/);
|
||||||
if (!latestVersion) return;
|
if (!latestVersion) return;
|
||||||
|
|
||||||
if (currentVersion[0] === latestVersion[0]) return;
|
if (currentVersion[0] === latestVersion[0] || currentVersion[0] > latestVersion[0]) return;
|
||||||
|
|
||||||
const updateMessage =
|
const updateMessage =
|
||||||
currentVersion[3] < latestVersion[3]
|
currentVersion[3] < latestVersion[3]
|
||||||
|
|||||||
Reference in new issue
Block a user