From 7dbfeee3f6a9a9bb4c62b5accdfb50a09b1ac04e Mon Sep 17 00:00:00 2001 From: choibk Date: Sun, 25 Jan 2026 00:52:02 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EC=A0=84=20=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EC=8B=9C=EC=8A=A4=ED=85=9C=20=EC=B5=9C=EC=A2=85=20=EC=95=88?= =?UTF-8?q?=EC=A0=95=ED=99=94:=20=ED=94=84=EB=A1=A0=ED=8A=B8=EC=97=94?= =?UTF-8?q?=EB=93=9C=20=EB=B2=84=EC=A0=84=20=ED=91=9C=EC=8B=9C=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=20=EB=B3=B4=EC=99=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/routes/system.js | 8 ++++++-- src/platform/pages/VersionPage.tsx | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/server/routes/system.js b/server/routes/system.js index 4c71250..55809e7 100644 --- a/server/routes/system.js +++ b/server/routes/system.js @@ -545,7 +545,11 @@ router.get('/version/remote', isAuthenticated, hasRole('admin'), async (req, res const history = allTags.filter(t => compare(t.version, currentVersion) <= 0); const latestFromRemote = allTags[0] || null; - const needsUpdate = latestFromRemote ? (compare(latestFromRemote.version, currentVersion) > 0) : false; + const compResult = latestFromRemote ? compare(latestFromRemote.version, currentVersion) : 0; + const needsUpdate = compResult > 0; + + console.log(`[VersionCheck] Path: ${packageJsonPath}`); + console.log(`[VersionCheck] Current: "${currentVersion}", Latest: "${latestFromRemote?.version}", Comp: ${compResult}, NeedsUpdate: ${needsUpdate}`); res.json({ current: currentVersion, @@ -553,7 +557,7 @@ router.get('/version/remote', isAuthenticated, hasRole('admin'), async (req, res needsUpdate: needsUpdate, latestInfo: needsUpdate ? latestFromRemote : null, history: history, - debug: { path: packageJsonPath } + debug: { path: packageJsonPath, compResult } }); }); }); diff --git a/src/platform/pages/VersionPage.tsx b/src/platform/pages/VersionPage.tsx index e6713a7..41868f6 100644 --- a/src/platform/pages/VersionPage.tsx +++ b/src/platform/pages/VersionPage.tsx @@ -110,7 +110,7 @@ export function VersionPage() { }; // Source of truth for versioning comes from the API - const currentVersion = remoteInfo?.current || '0.4.0'; + const currentVersion = remoteInfo?.current || healthIcon?.version || '---'; const buildDate = '2026-01-25'; // Check if update is needed based on API-supplied needsUpdate flag