1
0
forked from Yara724/api

Fixed log for error

This commit is contained in:
2026-04-05 16:44:14 +03:30
parent 9084f8fafb
commit fb4d166c31

View File

@@ -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",