You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: `Your ${environment.app.name} phone number verification code is %otp_code%. Do not share this code with anyone. Visit your ${environment.app.name} account now to verify.`,
message: `Your ${environment.app.name} phone number verification code is %otp_code%. Do not share this code with anyone. Visit your ${environment.app.name} account now to verify.`,
135
+
});
133
136
134
-
if(!res.success){
135
-
this.logger.error(res);
136
-
thrownewBadRequestException(
137
-
'Failed to send OTP code. Please try again later!'
138
-
);
139
-
}
137
+
if(!res.success){
138
+
this.logger.error(res);
139
+
thrownewBadRequestException(
140
+
'Failed to send OTP code. Please try again later!'
141
+
);
142
+
}
140
143
141
-
returnawaitthis.userRepository.findOneOrFail({
142
-
where: {
143
-
id: user.id,
144
-
},
145
-
relations: ['profile','verification'],
146
-
});
144
+
returnawaitthis.userRepository.findOneOrFail({
145
+
where: {
146
+
id: user.id,
147
+
},
148
+
relations: ['profile','verification'],
149
+
});
150
+
}catch(e){
151
+
this.logger.error(e.message,e);
152
+
153
+
throweinstanceofBadRequestException
154
+
? e
155
+
: newBadRequestException(
156
+
'Failed to send OTP code. Please try again later!'
0 commit comments