parent
cedc1750c2
commit
6bb3ae8ba9
|
@ -28,7 +28,9 @@ if (typeof config.development !== "boolean") {
|
|||
if (config.mailer_url == "" || config.mailer_key == "") {
|
||||
errors++;
|
||||
}
|
||||
console.log(config.testing)
|
||||
if (config.testing) {
|
||||
console.log("Discovered testing env. Ignoring all mailing errors!")
|
||||
}
|
||||
function getPhoneCodeLocale(): CountryCode {
|
||||
return (process.env.PHONE_COUNTRYCODE as CountryCode);
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ export class Mailer {
|
|||
resetKey: token
|
||||
});
|
||||
} catch (error) {
|
||||
if (Mailer.testing) { return true; }
|
||||
throw new MailSendingError();
|
||||
}
|
||||
}
|
||||
|
@ -39,6 +40,7 @@ export class Mailer {
|
|||
selfserviceToken: token
|
||||
});
|
||||
} catch (error) {
|
||||
if (Mailer.testing) { return true; }
|
||||
throw new MailSendingError();
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +57,7 @@ export class Mailer {
|
|||
selfserviceToken: token
|
||||
});
|
||||
} catch (error) {
|
||||
if (Mailer.testing) { return true; }
|
||||
throw new MailSendingError();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue