mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
fix: user apiKey creation issue
This commit is contained in:
@@ -220,7 +220,7 @@ router.post('/api-keys', authenticateUser, async (req, res) => {
|
|||||||
id: newApiKey.id,
|
id: newApiKey.id,
|
||||||
name: newApiKey.name,
|
name: newApiKey.name,
|
||||||
description: newApiKey.description,
|
description: newApiKey.description,
|
||||||
key: newApiKey.key, // 只在创建时返回完整key
|
key: newApiKey.apiKey, // 只在创建时返回完整key
|
||||||
tokenLimit: newApiKey.tokenLimit,
|
tokenLimit: newApiKey.tokenLimit,
|
||||||
expiresAt: newApiKey.expiresAt,
|
expiresAt: newApiKey.expiresAt,
|
||||||
dailyCostLimit: newApiKey.dailyCostLimit,
|
dailyCostLimit: newApiKey.dailyCostLimit,
|
||||||
|
|||||||
Reference in New Issue
Block a user