mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
fix: resolve type errors from tags parameter change
Fixed type errors caused by changing WorkflowListParams.tags from string[] to string: 1. cleanup-helpers.ts: Changed tags: [tag] to tags: tag (line 221) 2. n8n-api-client.test.ts: Changed tags: ['test'] to tags: 'test,production' (line 384) 3. Added unit tests for handleDeleteWorkflow and handleListWorkflows (100% coverage) All tests pass, lint clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -218,7 +218,7 @@ export async function cleanupWorkflowsByTag(tag: string): Promise<string[]> {
|
||||
|
||||
try {
|
||||
const response = await client.listWorkflows({
|
||||
tags: tag ? [tag] : undefined,
|
||||
tags: tag || undefined,
|
||||
limit: 100,
|
||||
excludePinnedData: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user