api/env: refactor subscribe event logic

This commit is contained in:
jj
2025-07-19 15:47:37 +00:00
parent 09c42d9be0
commit 3c5f5b90b2
2 changed files with 4 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import { getVersion } from "@imput/version-info";
import { loadEnvs, validateEnvs, onEnvChanged } from "./core/env.js";
import { loadEnvs, validateEnvs } from "./core/env.js";
const version = await getVersion();
@@ -28,10 +28,6 @@ export const updateEnv = (newEnv) => {
env[key] = newEnv[key];
}
if (changes.length) {
onEnvChanged(changes);
}
return changes;
}