Fix workflow run executed by empty (#11642)

Workflow run executed by should not be empty when the workflow is
unamed. Adding Workflow as fallback

<img width="1072" alt="Capture d’écran 2025-04-17 à 19 17 12"
src="https://github.com/user-attachments/assets/e4cc3360-06e5-47e8-ba05-28a0eafab994"
/>
This commit is contained in:
Thomas Trompette
2025-04-18 11:26:51 +02:00
committed by GitHub
parent 8a2a004fb5
commit 8112c3aab3
3 changed files with 31 additions and 18 deletions
@@ -21,12 +21,17 @@ export class WorkflowRunnerWorkspaceService {
private readonly billingUsageService: BillingUsageService,
) {}
async run(
workspaceId: string,
workflowVersionId: string,
payload: object,
source: ActorMetadata,
) {
async run({
workspaceId,
workflowVersionId,
payload,
source,
}: {
workspaceId: string;
workflowVersionId: string;
payload: object;
source: ActorMetadata;
}) {
const canFeatureBeUsed =
await this.billingUsageService.canFeatureBeUsed(workspaceId);