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:
czlonkowski
2025-10-04 23:57:08 +02:00
parent ae329c3bb6
commit 08e906739f
3 changed files with 161 additions and 4 deletions

View File

@@ -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
});