diff --git a/packages/twenty-server/src/modules/workflow/workflow-builder/workflow-builder.workspace-service.ts b/packages/twenty-server/src/modules/workflow/workflow-builder/workflow-builder.workspace-service.ts index 46e118c94c50..17e595c0deee 100644 --- a/packages/twenty-server/src/modules/workflow/workflow-builder/workflow-builder.workspace-service.ts +++ b/packages/twenty-server/src/modules/workflow/workflow-builder/workflow-builder.workspace-service.ts @@ -78,7 +78,7 @@ export class WorkflowBuilderWorkspaceService { codeIntrospectionService: this.codeIntrospectionService, }); } - case WorkflowActionType.RECORD_OPERATION: + case WorkflowActionType.RECORD_CRUD: return await this.computeRecordOutputSchema({ objectType: step.settings.input.objectName, workspaceId, diff --git a/packages/twenty-server/src/modules/workflow/workflow-executor/factories/workflow-action.factory.ts b/packages/twenty-server/src/modules/workflow/workflow-executor/factories/workflow-action.factory.ts index dc792d86fd50..c3592568a75c 100644 --- a/packages/twenty-server/src/modules/workflow/workflow-executor/factories/workflow-action.factory.ts +++ b/packages/twenty-server/src/modules/workflow/workflow-executor/factories/workflow-action.factory.ts @@ -25,7 +25,7 @@ export class WorkflowActionFactory { return this.codeWorkflowAction; case WorkflowActionType.SEND_EMAIL: return this.sendEmailWorkflowAction; - case WorkflowActionType.RECORD_OPERATION: + case WorkflowActionType.RECORD_CRUD: return this.recordCRUDWorkflowAction; default: throw new WorkflowStepExecutorException( diff --git a/packages/twenty-server/src/modules/workflow/workflow-executor/workflow-actions/types/workflow-action.type.ts b/packages/twenty-server/src/modules/workflow/workflow-executor/workflow-actions/types/workflow-action.type.ts index 991d10f3013e..1ce3baefa038 100644 --- a/packages/twenty-server/src/modules/workflow/workflow-executor/workflow-actions/types/workflow-action.type.ts +++ b/packages/twenty-server/src/modules/workflow/workflow-executor/workflow-actions/types/workflow-action.type.ts @@ -6,7 +6,7 @@ import { WorkflowActionSettings } from 'src/modules/workflow/workflow-executor/w export enum WorkflowActionType { CODE = 'CODE', SEND_EMAIL = 'SEND_EMAIL', - RECORD_OPERATION = 'RECORD_OPERATION', + RECORD_CRUD = 'RECORD_CRUD', } type BaseWorkflowAction = { @@ -28,7 +28,7 @@ export type WorkflowSendEmailAction = BaseWorkflowAction & { }; export type WorkflowRecordCRUDAction = BaseWorkflowAction & { - type: WorkflowActionType.RECORD_OPERATION; + type: WorkflowActionType.RECORD_CRUD; settings: WorkflowRecordCRUDActionSettings; };