Skip to content

Commit

Permalink
Rename type
Browse files Browse the repository at this point in the history
  • Loading branch information
thomtrp committed Nov 13, 2024
1 parent 1bd1cdd commit a1cfd21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -28,7 +28,7 @@ export type WorkflowSendEmailAction = BaseWorkflowAction & {
};

export type WorkflowRecordCRUDAction = BaseWorkflowAction & {
type: WorkflowActionType.RECORD_OPERATION;
type: WorkflowActionType.RECORD_CRUD;
settings: WorkflowRecordCRUDActionSettings;
};

Expand Down

0 comments on commit a1cfd21

Please sign in to comment.