From 0945607b3f375d9ebfa72caf40b2f394316283f2 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 3 Jan 2023 17:43:12 -0800 Subject: [PATCH] fix? --- packages/backend/src/server/api/endpoints/release.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/release.ts b/packages/backend/src/server/api/endpoints/release.ts index 9ea9160751..fcdcfbe5ba 100644 --- a/packages/backend/src/server/api/endpoints/release.ts +++ b/packages/backend/src/server/api/endpoints/release.ts @@ -16,9 +16,12 @@ export const paramDef = { // eslint-disable-next-line import/no-default-export export default define(meta, paramDef, async () => { + let release; + await fetch('https://codeberg.org/calckey/calckey/raw/branch/develop/release.json') .then((response) => response.json()) .then((data) => { - return data; + release = data; }); + return release; });