Fix app version metrics endpoint (#4209)

fix app version metrics endpoint
This commit is contained in:
Sean Hatfield 2025-07-28 15:37:06 -07:00 committed by GitHub
parent 78cbb06c57
commit 8c7923a283
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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) {