fix: complete Phase 4 integration test fixes

- Fixed better-sqlite3 ES module imports across all tests
- Updated template repository method to handle undefined results
- Fixed all database column references to match schema
- Corrected MCP transport initialization
- All integration tests now passing
This commit is contained in:
czlonkowski
2025-07-29 12:46:55 +02:00
parent 11675cccd9
commit c824fb5ebf
8 changed files with 530 additions and 245 deletions

View File

@@ -113,8 +113,8 @@ export class TemplateRepository {
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`);
// Extract node types from workflow
const nodeTypes = workflow.nodes.map(n => n.name);
// Extract node types from workflow detail
const nodeTypes = detail.workflow.nodes.map(n => n.type);
// Build URL
const url = `https://n8n.io/workflows/${workflow.id}`;