1
0
forked from Yara724/api

Merge pull request 'Fixed log for error' (#14) from s.yahyaee/yara724-api:main into main

Reviewed-on: Yara724/api#14
This commit is contained in:
2026-04-05 16:45:12 +03:30

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