diff --git a/src/modules/auth/services/auth.service.ts b/src/modules/auth/services/auth.service.ts index 063a64b..c7c05df 100644 --- a/src/modules/auth/services/auth.service.ts +++ b/src/modules/auth/services/auth.service.ts @@ -25,7 +25,7 @@ export class AuthService { private readonly adminRepository: AdminRepository, private readonly configService: ConfigService, ) { - this.OTP_EXPIRATION_TIME = this.configService.getOrThrow('OTP_EXPIRATION_TIME')??240; + this.OTP_EXPIRATION_TIME = this.configService.get('OTP_EXPIRATION_TIME') ?? 240; } private userOtpKey(restaurantSlug: string, phone: string) { return `otp:${restaurantSlug}:${phone}`;