Skip to content

Conversation

hentrymartin
Copy link
Collaborator

What's in this PR?

  • Implemented an endpoint to update a workflow

Ticket link - https://topcoder.atlassian.net/browse/PM-1794

where: { id },
data: {
...updateDto,
updatedBy,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is either user handle making the call or system in case of M2M.

import {
ApiBearerAuth,
ApiTags,
ApiOperation,
ApiResponse,
ApiParam,
ApiBody,
} from '@nestjs/swagger';
import { AiWorkflowService } from './ai-workflow.service';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import path for AiWorkflowService has been changed from ./aiWorkflow.service to ./ai-workflow.service. Ensure that the file name has been updated accordingly in the file system to prevent import errors.

@Param('id') id: string,
@Body(new ValidationPipe({ whitelist: true, transform: true }))
updateDto: UpdateAiWorkflowDto,
) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user parameter has been removed from the method signature, but it is still being used in the updateWorkflow method call. Ensure that the updateWorkflow method does not require the userId parameter anymore, or update the method implementation accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants