refactor: run formatter

This commit is contained in:
Elias Schneider
2024-02-05 16:11:49 +01:00
parent 416eba6ae6
commit e572506d4f
3 changed files with 29 additions and 23 deletions

View File

@@ -139,7 +139,7 @@ export class AuthService {
async updatePassword(user: User, newPassword: string, oldPassword?: string) {
const isPasswordValid =
!user.password || await argon.verify(user.password, oldPassword);
!user.password || (await argon.verify(user.password, oldPassword));
if (!isPasswordValid) throw new ForbiddenException("Invalid password");