fix: Resolve all linting errors

- Remove unused imports and variables in metricsRoutes.js
- Prefix unused error variables with underscore
- Fix useEffect dependency in Login.jsx
- Add aria-label and title to all SVG elements for accessibility
This commit is contained in:
Muhammad Ibrahim
2025-10-28 15:54:56 +00:00
parent 9705e24b83
commit 48ce1951de
23 changed files with 2595 additions and 371 deletions

View File

@@ -366,13 +366,10 @@ router.post(
) {
console.error("⚠️ DATABASE CONNECTION POOL EXHAUSTED!");
console.error(
"⚠️ Current limit: DB_CONNECTION_LIMIT=" +
(process.env.DB_CONNECTION_LIMIT || "30"),
`⚠️ Current limit: DB_CONNECTION_LIMIT=${process.env.DB_CONNECTION_LIMIT || "30"}`,
);
console.error(
"⚠️ Pool timeout: DB_POOL_TIMEOUT=" +
(process.env.DB_POOL_TIMEOUT || "20") +
"s",
`⚠️ Pool timeout: DB_POOL_TIMEOUT=${process.env.DB_POOL_TIMEOUT || "20"}s`,
);
console.error(
"⚠️ Suggestion: Increase DB_CONNECTION_LIMIT in your .env file",