From 0c33fcd54d3d9af11d0f8dd9b1852f52134db222 Mon Sep 17 00:00:00 2001 From: Theo Date: Sun, 9 Jul 2023 19:40:08 -0700 Subject: [PATCH] Fix software versions comparison, now, if version higher than latest on git, no error thrown --- src/services/health.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/health.service.ts b/src/services/health.service.ts index bb4a74e..2cf19c6 100644 --- a/src/services/health.service.ts +++ b/src/services/health.service.ts @@ -127,7 +127,7 @@ export class HealthService { const lastVersion = (await fetch('https://api.github.com/repos/tornadocash/tornado-relayer/releases').then((res) => res.json()))[0]?.tag_name || this.config.version; - const isUpToDate = compareVersions(this.config.version, lastVersion) === 0; + const isUpToDate = compareVersions(this.config.version, lastVersion) >= 0; if (!isUpToDate) { await this.pushAlert({ type: 'VERSION_UPDATE_WARN',