File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ export class TriggerBlockHandler implements BlockHandler {
4444
4545 // Generic handling for webhook triggers - extract provider-specific data
4646
47-
4847 // Check if this is a webhook execution
4948 if ( starterOutput . webhook ?. data ) {
5049 const webhookData = starterOutput . webhook ?. data || { }
@@ -64,7 +63,6 @@ export class TriggerBlockHandler implements BlockHandler {
6463 }
6564 }
6665
67-
6866 // Extract the flattened properties that should be at root level (non-GitHub)
6967 const result : any = {
7068 // Always keep the input at root level
Original file line number Diff line number Diff line change @@ -1587,10 +1587,9 @@ export class Executor {
15871587
15881588 return streamingExec
15891589 }
1590-
15911590
15921591 // Handle error outputs and ensure object structure
1593- let output : NormalizedBlockOutput =
1592+ const output : NormalizedBlockOutput =
15941593 rawOutput && typeof rawOutput === 'object' && rawOutput . error
15951594 ? { error : rawOutput . error , status : rawOutput . status || 500 }
15961595 : typeof rawOutput === 'object' && rawOutput !== null
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const logger = createLogger('InputResolver')
1414function resolveFromWebhookPayload ( container : any , property : string ) : any {
1515 try {
1616 const payload = container ?. webhook ?. data ?. payload
17- if ( payload && typeof payload === 'object' && Object . prototype . hasOwnProperty . call ( payload , property ) ) {
17+ if ( payload && typeof payload === 'object' && Object . hasOwn ( payload , property ) ) {
1818 return payload [ property ]
1919 }
2020 } catch ( _ ) {
@@ -560,7 +560,6 @@ export class InputResolver {
560560 if ( ! Array . isArray ( arrayValue ) ) {
561561 throw new Error (
562562 `Property "${ arrayName } " is not an array in path "${ path } " for starter block.`
563-
564563 )
565564 }
566565
@@ -800,7 +799,6 @@ export class InputResolver {
800799 const blockType = currentBlock . metadata ?. id
801800
802801 let formattedValue : string
803-
804802
805803 if ( currentBlock . metadata ?. id === 'condition' ) {
806804 formattedValue = this . stringifyForCondition ( replacementValue )
You can’t perform that action at this time.
0 commit comments