mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
fix: 修复 ESLint 错误 - if 语句花括号和箭头函数简写
This commit is contained in:
@@ -474,9 +474,9 @@ async function getApiKeysSortedByCostCustom(options) {
|
||||
}
|
||||
|
||||
// 2. 转换为数组并排序
|
||||
const sortedEntries = [...costs.entries()].sort((a, b) => {
|
||||
return sortOrder === 'desc' ? b[1] - a[1] : a[1] - b[1]
|
||||
})
|
||||
const sortedEntries = [...costs.entries()].sort((a, b) =>
|
||||
sortOrder === 'desc' ? b[1] - a[1] : a[1] - b[1]
|
||||
)
|
||||
const rankedKeyIds = sortedEntries.map(([keyId]) => keyId)
|
||||
|
||||
// 3. 批量获取 API Key 基础数据
|
||||
|
||||
Reference in New Issue
Block a user