From da9981533c202de89f871f64ebc6507768170852 Mon Sep 17 00:00:00 2001 From: andres Date: Fri, 26 Jul 2024 11:52:54 +0200 Subject: [PATCH] feat: add delete current user account use case --- src/modules/auth/auth.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index a791920..f0846b4 100644 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -107,7 +107,7 @@ export class AuthController { @UseGuards(JwtAuthGuard) @HttpCode(HttpStatus.NO_CONTENT) @Delete('me') - async deleteUserAccount(@Request() req): Promise { + async deleteUserAccount(@Request() req): Promise { const userId = req.user.id return await this.commandBus.execute(new DeleteCurrentAccountCommand(userId))