From fb4d166c3199f4dc4cb487bf192e9dc3f24d4598 Mon Sep 17 00:00:00 2001 From: "s.yahyaee" Date: Sun, 5 Apr 2026 16:44:14 +0330 Subject: [PATCH] Fixed log for error --- src/auth/auth-services/user.auth.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth/auth-services/user.auth.service.ts b/src/auth/auth-services/user.auth.service.ts index 72113e2..542a959 100644 --- a/src/auth/auth-services/user.auth.service.ts +++ b/src/auth/auth-services/user.auth.service.ts @@ -125,12 +125,12 @@ export class UserAuthService { }) .then((smsRes) => { this.logger.log( - `${"phone : " + mobile + " " + ", status : " + smsRes["return"].status + ", otp : " + otp} `, + `${"phone : " + mobile + " " + ", status : " + smsRes["return"]?.status + ", otp : " + otp} `, ); }) .catch((er) => { this.logger.error( - `${"phone : " + mobile + " " + ", status : " + er["return"].status + ", otp : " + otp} `, + `${"phone : " + mobile + " " + ", status : " + er["return"]?.status + ", otp : " + otp} `, ); throw new HttpException( " auth sms send failed",