diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts index e995977..5863d5e 100644 --- a/src/auth/auth.service.ts +++ b/src/auth/auth.service.ts @@ -32,12 +32,12 @@ export class AuthService { async getUser(id: string) { const user = await this.usersService.findById(id); - if (!user) { + if (!user) { throw new NotFoundException('User not found'); } - const { password, ...userWithoutPassword } = user; + const { password, ...userWithoutPassword } = user; return userWithoutPassword; -} + } }