mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 20:15:22 +00:00
Merge pull request #1 from f3n9/codex/fix-account-management-scheduling-status
Fix schedulable flag for OpenAI and Azure accounts
This commit is contained in:
@@ -296,7 +296,11 @@ async function getAllAccounts() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
accounts.push(accountData)
|
accounts.push({
|
||||||
|
...accountData,
|
||||||
|
isActive: accountData.isActive === 'true',
|
||||||
|
schedulable: accountData.schedulable !== 'false'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -502,6 +502,8 @@ async function getAllAccounts() {
|
|||||||
// 不解密敏感字段,只返回基本信息
|
// 不解密敏感字段,只返回基本信息
|
||||||
accounts.push({
|
accounts.push({
|
||||||
...accountData,
|
...accountData,
|
||||||
|
isActive: accountData.isActive === 'true',
|
||||||
|
schedulable: accountData.schedulable !== 'false',
|
||||||
openaiOauth: accountData.openaiOauth ? '[ENCRYPTED]' : '',
|
openaiOauth: accountData.openaiOauth ? '[ENCRYPTED]' : '',
|
||||||
accessToken: accountData.accessToken ? '[ENCRYPTED]' : '',
|
accessToken: accountData.accessToken ? '[ENCRYPTED]' : '',
|
||||||
refreshToken: accountData.refreshToken ? '[ENCRYPTED]' : '',
|
refreshToken: accountData.refreshToken ? '[ENCRYPTED]' : '',
|
||||||
|
|||||||
Reference in New Issue
Block a user