Skip to content

Commit 81aeaad

Browse files
SangilYuneleanorreem
authored andcommitted
update function name and param
1 parent 45d6909 commit 81aeaad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/partner/partner.controller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ export class PartnerController {
4848
@ApiBearerAuth('access-token')
4949
@UseGuards(SuperAdminAuthGuard)
5050
@Patch(':id')
51-
@ApiOperation({ description: 'Update a partner profile and makes partnerAccess inactive' })
51+
@ApiOperation({ description: 'Update a partner profile and makes partner active or inactive' })
5252
@ApiBody({ type: DeletePartnerDto })
53-
async deletePartner(
53+
async updatePartner(
5454
@Param() { id },
55-
@Body() deletePartnerDto: UpdatePartnerDto,
55+
@Body() updatePartnerDto: UpdatePartnerDto,
5656
) {
57-
return this.partnerService.updatePartner(id, deletePartnerDto);
57+
return this.partnerService.updatePartner(id, updatePartnerDto);
5858
}
5959
}

0 commit comments

Comments
 (0)