Enviroment variable patch type error fix

This commit is contained in:
2026-01-02 19:43:42 +01:00
parent fd3b8bda02
commit 3f2d562299
+1 -1
View File
@@ -81,7 +81,7 @@ export async function getEnv(): Promise<Record<string, Env>> {
const envPath = path.join(DATA_DIR, appId, "env.json"); const envPath = path.join(DATA_DIR, appId, "env.json");
if (fs.existsSync(envPath)) { if (fs.existsSync(envPath)) {
const envData: EnvVariable[] = JSON.parse( const envData: Record<string, EnvVariable> = JSON.parse(
fs.readFileSync(envPath, "utf-8") fs.readFileSync(envPath, "utf-8")
); );
acc[appId] = { variables: envData, id: appId, name }; acc[appId] = { variables: envData, id: appId, name };