fix: Make sure retryOf does not take null value (no-changelog) (#5915)

This commit is contained in:
Omar Ajoue 2023-04-06 13:02:46 +02:00 committed by GitHub
parent 3e382ef85e
commit 89c12fc1a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,8 @@ export class WorkflowHooks {
this.executionId = executionId;
this.workflowData = workflowData;
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