fix: webhook and 4 other nodes incorrectly marked as non-triggers

Updated trigger detection logic in both parsers to check if a node's group array includes 'trigger'. This fixes an issue where webhook, cron, interval, and emailReadImap nodes were not being identified as triggers despite having category='trigger'.

Note: After pulling this change, run `npm run rebuild` to update your local database.

Fixes #13

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-07-06 11:51:22 +02:00
parent 953310c9ad
commit 3cd683abc7
2 changed files with 24 additions and 1 deletions

View File

@@ -107,6 +107,14 @@ export class NodeParser {
}
private detectTrigger(description: any): boolean {
// Primary check: group includes 'trigger'
if (description.group && Array.isArray(description.group)) {
if (description.group.includes('trigger')) {
return true;
}
}
// Fallback checks for edge cases
return description.polling === true ||
description.trigger === true ||
description.eventTrigger === true ||