feat: handle notification using redis

This commit is contained in:
Abdalhamid Alhamad
2025-03-27 12:33:01 +03:00
parent ec38b82a7b
commit a3f88c774c
14 changed files with 206 additions and 91 deletions

View File

@ -43,9 +43,8 @@ export class OtpService {
return false;
}
const { affected } = await this.otpRepository.updateOtp(otp.id, { isUsed: true });
console.log('+++++++++++++++++++++++++++');
console.log(affected);
await this.otpRepository.updateOtp(otp.id, { isUsed: true });
this.logger.log(`OTP verified successfully for ${verifyOtpRequest.userId}`);
return !!otp;