@samitouri / QOSami-HFS / commits / 240aa941

fix: check-update was reporting older betas as an update

Massimo Melina committed Dec 25, 2023 at 19:01 UTC 240aa9418a0411b89b640ffeca99402caed53a9c
1 file changed +1 -1
src/commands.ts
+1 -1
@@ -103,7 +103,7 @@ const commands = {
103 'check-update': {
104 params: '',
105 async cb() {
106 - const [update] = await getUpdates()
106 + const update = _.find(await getUpdates(), x => x.isNewer)
107 if (!update)
108 throw "you already have the latest version: " + VERSION
109 console.log("new version available", update.name)