fix: change store apis to async (#37329)

This commit is contained in:
Yunlu Wen
2026-06-15 02:24:51 +00:00
committed by GitHub
parent e0773c4d8f
commit d315ae3b80
48 changed files with 398 additions and 379 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ describe('runVersionProbe', () => {
reg.setHost(url.host)
reg.setAccount('test@dify.ai')
reg.setScheme(url.host, url.protocol.replace(':', ''))
reg.save()
await reg.save()
process.env[ENV_CONFIG_DIR] = configDir
const report = await runVersionProbe({ skipServer: false })
+1 -1
View File
@@ -48,7 +48,7 @@ export type RunVersionProbeOptions = {
}
const defaultLoadActive = async (): Promise<ActiveContext | undefined> => {
return Registry.load().resolveActive()
return (await Registry.load()).resolveActive()
}
const defaultProbe: MetaProbe = async (endpoint) => {