fixed automation dtos

This commit is contained in:
hannathkadher
2024-11-04 22:10:05 +04:00
parent 0d000e4b60
commit aad794b2cd

View File

@ -77,7 +77,7 @@ export class AutomationController {
} }
@ApiBearerAuth() @ApiBearerAuth()
@UseGuards(JwtAuthGuard) @UseGuards(JwtAuthGuard)
@Put(':automationId') @Put(':automationUuid')
async updateAutomation( async updateAutomation(
@Body() updateAutomationDto: UpdateAutomationDto, @Body() updateAutomationDto: UpdateAutomationDto,
@Param() param: AutomationParamDto, @Param() param: AutomationParamDto,
@ -96,7 +96,7 @@ export class AutomationController {
@ApiBearerAuth() @ApiBearerAuth()
@UseGuards(JwtAuthGuard) @UseGuards(JwtAuthGuard)
@Put('status/:automationId') @Put('status/:automationUuid')
async updateAutomationStatus( async updateAutomationStatus(
@Body() updateAutomationStatusDto: UpdateAutomationStatusDto, @Body() updateAutomationStatusDto: UpdateAutomationStatusDto,
@Param() param: AutomationParamDto, @Param() param: AutomationParamDto,