refactor(core): Rename push sessionId to pushRef (#8905)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-04-03 13:43:14 +02:00
committed by GitHub
parent eaaefd76da
commit 072c3db97d
58 changed files with 248 additions and 257 deletions

View File

@@ -99,7 +99,7 @@ export class WorkflowExecutionService {
destinationNode,
}: WorkflowRequest.ManualRunPayload,
user: User,
sessionId?: string,
pushRef?: string,
) {
const pinnedTrigger = this.selectPinnedActivatorStarter(
workflowData,
@@ -122,7 +122,7 @@ export class WorkflowExecutionService {
workflowData,
additionalData,
runData,
sessionId,
pushRef,
destinationNode,
);
@@ -138,7 +138,7 @@ export class WorkflowExecutionService {
executionMode: 'manual',
runData,
pinData,
sessionId,
pushRef,
startNodes,
workflowData,
userId: user.id,

View File

@@ -3,7 +3,6 @@ import { v4 as uuid } from 'uuid';
import axios from 'axios';
import * as Db from '@/Db';
import * as GenericHelpers from '@/GenericHelpers';
import * as ResponseHelper from '@/ResponseHelper';
import * as WorkflowHelpers from '@/WorkflowHelpers';
import type { IWorkflowResponse } from '@/Interfaces';
@@ -331,7 +330,7 @@ export class WorkflowsController {
return await this.workflowExecutionService.executeManually(
req.body,
req.user,
GenericHelpers.getSessionId(req),
req.headers['push-ref'] as string,
);
}