diff --git a/src/auth/services/user-auth.service.ts b/src/auth/services/user-auth.service.ts index ae8c721..6c1e172 100644 --- a/src/auth/services/user-auth.service.ts +++ b/src/auth/services/user-auth.service.ts @@ -135,7 +135,7 @@ export class UserAuthService { } if (otp.expiryTime < new Date()) { - await this.otpRepository.delete(otp.id); + await this.otpRepository.delete(otp.uuid); throw new BadRequestException('OTP expired'); }