mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 09:24:54 +00:00
Refactor OTP deletion in UserAuthService
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user