await config
This commit is contained in:
1 parent
124683f8c1
commit
4aaa1b6674
1 file changed
+1
-2
@@ -92,11 +92,10 @@ class EmailService {
|
|||||||
buildAndSendEmail = async (template, context, to, subject, transportConfig) => {
|
buildAndSendEmail = async (template, context, to, subject, transportConfig) => {
|
||||||
// TODO - Consider an update transporter method so this only needs to be recreated when smtp settings change
|
// TODO - Consider an update transporter method so this only needs to be recreated when smtp settings change
|
||||||
let config;
|
let config;
|
||||||
|
|
||||||
if (typeof transportConfig !== "undefined") {
|
if (typeof transportConfig !== "undefined") {
|
||||||
config = transportConfig;
|
config = transportConfig;
|
||||||
} else {
|
} else {
|
||||||
config = this.settingsService.getDBSettings();
|
config = await this.settingsService.getDBSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|||||||
Reference in new issue
Block a user