Skip to content

Commit

Permalink
feat(api): fix compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Oct 7, 2024
1 parent d78262b commit fa85dcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/api/src/app/workflows-v2/workflow.controller.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ async function updateWorkflowAndValidate(
updatedAt: string,
updateRequest: UpdateWorkflowDto
): Promise<void> {
console.log('updateRequest:::'.toUpperCase(), JSON.stringify(updateRequest.steps, null, 2));
const updatedWorkflow: WorkflowResponseDto = await updateWorkflowRest(id, updateRequest);
const updatedWorkflowWithResponseFieldsRemoved = validateUpdatedWorkflowAndRemoveResponseFields(
updatedWorkflow,
Expand Down Expand Up @@ -584,7 +583,7 @@ function createStep(): StepCreateDto {

function buildUpdateRequest(workflowCreated: WorkflowResponseDto): UpdateWorkflowDto {
const steps = [createStep()];
const updateRequest = removeFields(workflowCreated, 'updatedAt', '_id', 'origin') as UpdateWorkflowDto;
const updateRequest = removeFields(workflowCreated, 'updatedAt', '_id', 'origin', 'status') as UpdateWorkflowDto;

return { ...updateRequest, name: TEST_WORKFLOW_UPDATED_NAME, steps };
}

0 comments on commit fa85dcd

Please sign in to comment.