Skip to content

Commit

Permalink
fix(diagnostics): correctly fetch and display addon version
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Sep 14, 2024
1 parent f49c475 commit c26c7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ async function getAddonVersion(): Promise<string | undefined> {
return addonVersionCached;

try {
const response = await axios.get<any, AddonInfo>(
const response = await axios.get<AddonInfo>(
'http://supervisor/addons/self/info',
{
headers: {
Authorization: `Bearer ${process.env.SUPERVISOR_TOKEN}`,
},
},
);
addonVersionCached = response.data.version;
addonVersionCached = response.data.data.version;
return addonVersionCached;
} catch (err) {
return 'error fetching version';
Expand Down

0 comments on commit c26c7ee

Please sign in to comment.