From 8c7923a283147933f22bb4dc84200eafdb4ad672 Mon Sep 17 00:00:00 2001 From: Sean Hatfield Date: Mon, 28 Jul 2025 15:37:06 -0700 Subject: [PATCH] Fix app version metrics endpoint (#4209) fix app version metrics endpoint --- frontend/src/models/system.js | 2 +- server/endpoints/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/models/system.js b/frontend/src/models/system.js index 9ba5f60c..45444d1d 100644 --- a/frontend/src/models/system.js +++ b/frontend/src/models/system.js @@ -762,7 +762,7 @@ const System = { if (!res.ok) throw new Error("Could not fetch app version."); return res.json(); }) - .then((res) => res?.version) + .then((res) => res?.appVersion) .catch(() => null); if (!newVersion) return null; diff --git a/server/endpoints/utils.js b/server/endpoints/utils.js index 425d44f9..e9712907 100644 --- a/server/endpoints/utils.js +++ b/server/endpoints/utils.js @@ -13,7 +13,7 @@ function utilEndpoints(app) { : "single-user", vectorDB: process.env.VECTOR_DB || "lancedb", storage: await getDiskStorage(), - version: getDeploymentVersion(), + appVersion: getDeploymentVersion(), }; response.status(200).json(metrics); } catch (e) {