fix: add missing await for async functions after sync-to-async migration
- getOAuthTokenFromOpenClaw: make async to properly await readAuthProfiles - secure-storage: add await for getActiveOpenClawProviders call - ipc-handlers: add await for updateAgentModelProvider in OAuth flow Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
@@ -214,7 +214,7 @@ export async function getAllProvidersWithKeyInfo(): Promise<
|
||||
> {
|
||||
const providers = await getAllProviders();
|
||||
const results: Array<ProviderConfig & { hasKey: boolean; keyMasked: string | null }> = [];
|
||||
const activeOpenClawProviders = getActiveOpenClawProviders();
|
||||
const activeOpenClawProviders = await getActiveOpenClawProviders();
|
||||
|
||||
// We need to avoid deleting native ones like 'anthropic' or 'google'
|
||||
// that don't need to exist in openclaw.json models.providers
|
||||
|
||||
Reference in New Issue
Block a user