mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
feat:已修复 ESLint no-shadow 问题:geminiApiAccountService 不再重复声明,改用顶部引入的实例。后端/前端 lint 均通过(npm run lint:check、cd web/admin-spa && npm run lint)
This commit is contained in:
@@ -150,7 +150,6 @@ router.get('/accounts/:accountId/usage-history', authenticateAdmin, async (req,
|
|||||||
accountData = await geminiAccountService.getAccount(accountId)
|
accountData = await geminiAccountService.getAccount(accountId)
|
||||||
break
|
break
|
||||||
case 'gemini-api': {
|
case 'gemini-api': {
|
||||||
const geminiApiAccountService = require('../../services/geminiApiAccountService')
|
|
||||||
accountData = await geminiApiAccountService.getAccount(accountId)
|
accountData = await geminiApiAccountService.getAccount(accountId)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -894,7 +893,6 @@ router.get('/account-usage-trend', authenticateAdmin, async (req, res) => {
|
|||||||
})
|
})
|
||||||
]
|
]
|
||||||
} else if (group === 'gemini') {
|
} else if (group === 'gemini') {
|
||||||
const geminiApiAccountService = require('../../services/geminiApiAccountService')
|
|
||||||
const [geminiAccounts, geminiApiAccounts] = await Promise.all([
|
const [geminiAccounts, geminiApiAccounts] = await Promise.all([
|
||||||
geminiAccountService.getAllAccounts(),
|
geminiAccountService.getAllAccounts(),
|
||||||
geminiApiAccountService.getAllAccounts(true)
|
geminiApiAccountService.getAllAccounts(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user