fix: resolve duplicate logger declaration and syntax error in rate limit service

- Remove duplicate logger import in server.js (line 26)
- Fix missing closing bracket in rateLimitService.js headers object
- Ensure backend starts without syntax errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-18 20:40:30 +02:00
parent 3f73d44c5a
commit 0fe6d738b2
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ async function createAuthRateLimiter() {
timestamp: new Date().toISOString(),
headers: {
'x-forwarded-for': req.headers['x-forwarded-for'],
'x-real-ip': req.headers['x-real-ip'
'x-real-ip': req.headers['x-real-ip']
},
requestUrl: req.originalUrl,
authType: req.path.includes('admin') ? 'admin' : 'gallery',