Fix app version metrics endpoint (#4209)
fix app version metrics endpoint
This commit is contained in:
parent
78cbb06c57
commit
8c7923a283
@ -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;
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user