mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 16:44:54 +00:00
feat: handle notification using redis
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user