mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 19:46:16 +00:00
fix: 修复 ESLint 代码质量问题
- 修复正则表达式中不必要的转义字符 - 使用对象解构优化代码风格 - 修复未使用变量的命名规范 - 确保所有修改文件通过 ESLint 检查 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -35,14 +35,14 @@ router.post('/test', authenticateAdmin, async (req, res) => {
|
||||
res.json({
|
||||
success: true,
|
||||
message: 'Webhook test successful',
|
||||
url: url
|
||||
url
|
||||
})
|
||||
} else {
|
||||
logger.warn(`❌ Webhook test failed for: ${url} - ${result.error}`)
|
||||
res.status(400).json({
|
||||
success: false,
|
||||
message: 'Webhook test failed',
|
||||
url: url,
|
||||
url,
|
||||
error: result.error
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user