fix: resolve all TypeScript lint errors
- Fixed undefined variable reference in server.ts (possiblePaths) - Fixed type mismatches in database performance tests - Added proper type assertions for MCP response objects - Fixed TemplateNode interface compliance in tests All TypeScript checks now pass successfully. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -58,11 +58,13 @@ export class N8NDocumentationMCPServer {
|
||||
const envDbPath = process.env.NODE_DB_PATH;
|
||||
let dbPath: string | null = null;
|
||||
|
||||
let possiblePaths: string[] = [];
|
||||
|
||||
if (envDbPath && (envDbPath === ':memory:' || existsSync(envDbPath))) {
|
||||
dbPath = envDbPath;
|
||||
} else {
|
||||
// Try multiple database paths
|
||||
const possiblePaths = [
|
||||
possiblePaths = [
|
||||
path.join(process.cwd(), 'data', 'nodes.db'),
|
||||
path.join(__dirname, '../../data', 'nodes.db'),
|
||||
'./data/nodes.db'
|
||||
|
||||
Reference in New Issue
Block a user