mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
chore: fix prettier formatting
This commit is contained in:
@@ -337,8 +337,8 @@ router.get('/api-keys', authenticateAdmin, async (req, res) => {
|
|||||||
timeRange === 'today'
|
timeRange === 'today'
|
||||||
? await client.keys(`usage:${apiKey.id}:model:daily:*:${tzToday}`)
|
? await client.keys(`usage:${apiKey.id}:model:daily:*:${tzToday}`)
|
||||||
: timeRange === '7days'
|
: timeRange === '7days'
|
||||||
? await client.keys(`usage:${apiKey.id}:model:daily:*:*`)
|
? await client.keys(`usage:${apiKey.id}:model:daily:*:*`)
|
||||||
: await client.keys(`usage:${apiKey.id}:model:monthly:*:${tzMonth}`)
|
: await client.keys(`usage:${apiKey.id}:model:monthly:*:${tzMonth}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
const modelStatsMap = new Map()
|
const modelStatsMap = new Map()
|
||||||
@@ -1861,13 +1861,13 @@ router.post('/claude-accounts/exchange-code', authenticateAdmin, async (req, res
|
|||||||
codeLength: req.body.callbackUrl
|
codeLength: req.body.callbackUrl
|
||||||
? req.body.callbackUrl.length
|
? req.body.callbackUrl.length
|
||||||
: req.body.authorizationCode
|
: req.body.authorizationCode
|
||||||
? req.body.authorizationCode.length
|
? req.body.authorizationCode.length
|
||||||
: 0,
|
: 0,
|
||||||
codePrefix: req.body.callbackUrl
|
codePrefix: req.body.callbackUrl
|
||||||
? `${req.body.callbackUrl.substring(0, 10)}...`
|
? `${req.body.callbackUrl.substring(0, 10)}...`
|
||||||
: req.body.authorizationCode
|
: req.body.authorizationCode
|
||||||
? `${req.body.authorizationCode.substring(0, 10)}...`
|
? `${req.body.authorizationCode.substring(0, 10)}...`
|
||||||
: 'N/A'
|
: 'N/A'
|
||||||
})
|
})
|
||||||
return res
|
return res
|
||||||
.status(500)
|
.status(500)
|
||||||
@@ -1983,13 +1983,13 @@ router.post('/claude-accounts/exchange-setup-token-code', authenticateAdmin, asy
|
|||||||
codeLength: req.body.callbackUrl
|
codeLength: req.body.callbackUrl
|
||||||
? req.body.callbackUrl.length
|
? req.body.callbackUrl.length
|
||||||
: req.body.authorizationCode
|
: req.body.authorizationCode
|
||||||
? req.body.authorizationCode.length
|
? req.body.authorizationCode.length
|
||||||
: 0,
|
: 0,
|
||||||
codePrefix: req.body.callbackUrl
|
codePrefix: req.body.callbackUrl
|
||||||
? `${req.body.callbackUrl.substring(0, 10)}...`
|
? `${req.body.callbackUrl.substring(0, 10)}...`
|
||||||
: req.body.authorizationCode
|
: req.body.authorizationCode
|
||||||
? `${req.body.authorizationCode.substring(0, 10)}...`
|
? `${req.body.authorizationCode.substring(0, 10)}...`
|
||||||
: 'N/A'
|
: 'N/A'
|
||||||
})
|
})
|
||||||
return res
|
return res
|
||||||
.status(500)
|
.status(500)
|
||||||
|
|||||||
Reference in New Issue
Block a user