fix: Make sure retryOf does not take null value (no-changelog) (#5915)
This commit is contained in:
@@ -33,7 +33,8 @@ export class WorkflowHooks {
|
|||||||
this.executionId = executionId;
|
this.executionId = executionId;
|
||||||
this.workflowData = workflowData;
|
this.workflowData = workflowData;
|
||||||
this.sessionId = optionalParameters.sessionId;
|
this.sessionId = optionalParameters.sessionId;
|
||||||
this.retryOf = optionalParameters.retryOf;
|
// retryOf might be `null` from TypeORM
|
||||||
|
this.retryOf = optionalParameters.retryOf ?? undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
||||||
|
|||||||
Reference in New Issue
Block a user