diff --git a/src/modules/connection/connection.controller.ts b/src/modules/connection/connection.controller.ts index a86904c..1d614bd 100644 --- a/src/modules/connection/connection.controller.ts +++ b/src/modules/connection/connection.controller.ts @@ -105,29 +105,29 @@ export class ConnectionController { return response; } - // @Delete('/:id') - // @RequireAllPermissions(connectionPermissions.DELETE) - // async deleteConnection( - // @User() user: RequestUser, - // @Param('id') id: string, - // ): Promise { - // this.logger.info('/connections - Delete Connection'); + @Delete('/:id') + @RequireAllPermissions(connectionPermissions.DELETE) + async deleteConnection( + @User() user: RequestUser, + @Param('id') id: string, + ): Promise { + this.logger.info('/connections - Delete Connection'); - // const { user_id, customer_id, customer_name, username } = user; - // const metadata = PackTheMetadata({ - // user_id, - // customer_id, - // customer_name, - // username, - // }); + const { user_id, customer_id, customer_name, username } = user; + const metadata = PackTheMetadata({ + user_id, + customer_id, + customer_name, + username, + }); - // const response: any = await this.clientService.deleteConnection({ - // body: { id }, - // metadata, - // }); + const response: any = await this.clientService.deleteConnection({ + body: { id }, + metadata, + }); - // return response; - // } + return response; + } @Get() async getAllConnections(