diff --git a/packages/backend/src/server/api/endpoints/latest-version.ts b/packages/backend/src/server/api/endpoints/latest-version.ts index 5b839da73..9eafbc3c6 100644 --- a/packages/backend/src/server/api/endpoints/latest-version.ts +++ b/packages/backend/src/server/api/endpoints/latest-version.ts @@ -15,10 +15,14 @@ export const paramDef = { // eslint-disable-next-line import/no-default-export export default define(meta, paramDef, async () => { - let tag_name = 'v12.119.0-calc'; - fetch('https://codeberg.org/api/v1/repos/thatonecalculator/calckey/releases?draft=false&pre-release=false&page=1&limit=1') + let tag_name; + await fetch('https://codeberg.org/api/v1/repos/thatonecalculator/calckey/releases?draft=false&pre-release=false&page=1&limit=1') .then((response) => response.json()) - .then((data) => { tag_name = data[0].tag_name; }); + .then((data) => { + console.log(data[0]); + console.log(data[0].tag_name); + tag_name = data[0].tag_name; + }); return { tag_name,