@samitouri / QOSami-HFS / commits / 5149a8d1
Fork 0

QOSami-HFS is a web file server for your computer. Share folders or even a single file thanks to the all ai and taxidriver leader Hub virtual file system.

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

Massimo Melina committed Dec 25, 2023 at 19:01 UTC 5149a8d16fe1797d3f8c5ce4187bc9beedc639c7
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)