refactor: run formatter

This commit is contained in:
Elias Schneider
2024-11-14 18:04:18 +01:00
parent d8084e401d
commit d870b5721a
3 changed files with 24 additions and 24 deletions

View File

@@ -26,7 +26,7 @@ import { UserSevice } from "./user.service";
export class UserController {
constructor(
private userService: UserSevice,
private config: ConfigService
private config: ConfigService,
) {}
// Own user operations
@@ -43,7 +43,7 @@ export class UserController {
@UseGuards(JwtGuard)
async updateCurrentUser(
@GetUser() user: User,
@Body() data: UpdateOwnUserDTO
@Body() data: UpdateOwnUserDTO,
) {
return new UserDTO().from(await this.userService.update(user.id, data));
}
@@ -53,7 +53,7 @@ export class UserController {
@UseGuards(JwtGuard)
async deleteCurrentUser(
@GetUser() user: User,
@Res({ passthrough: true }) response: Response
@Res({ passthrough: true }) response: Response,
) {
await this.userService.delete(user.id);