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) => { .then((smsRes) => {
this.logger.log( this.logger.log(
`${"phone : " + mobile + " " + ", status : " + smsRes["return"].status + ", otp : " + otp} `, `${"phone : " + mobile + " " + ", status : " + smsRes["return"]?.status + ", otp : " + otp} `,
); );
}) })
.catch((er) => { .catch((er) => {
this.logger.error( this.logger.error(
`${"phone : " + mobile + " " + ", status : " + er["return"].status + ", otp : " + otp} `, `${"phone : " + mobile + " " + ", status : " + er["return"]?.status + ", otp : " + otp} `,
); );
throw new HttpException( throw new HttpException(
" auth sms send failed", " auth sms send failed",