null check

This commit is contained in:
Philipinho
2025-04-08 11:59:47 +01:00
parent 7431804a46
commit 651e5f6153

View File

@ -49,7 +49,7 @@ export class AuthService {
const isPasswordMatch = await comparePasswordHash( const isPasswordMatch = await comparePasswordHash(
loginDto.password, loginDto.password,
user.password, user?.password,
); );
if (!user || !isPasswordMatch || user.deletedAt) { if (!user || !isPasswordMatch || user.deletedAt) {