mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 13:27:38 +00:00
hotfix: config variable reference
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
@@ -15,13 +15,13 @@ enum carrierAddress {
|
|||||||
const transporter = nodemailer.createTransport({
|
const transporter = nodemailer.createTransport({
|
||||||
service: 'gmail',
|
service: 'gmail',
|
||||||
auth: {
|
auth: {
|
||||||
user: Config.email.username,
|
user: Config.notifications.email.username,
|
||||||
pass: Config.email.password
|
pass: Config.notifications.email.password
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const mailOptions: Mail.Options = {
|
const mailOptions: Mail.Options = {
|
||||||
from: Config.email.username,
|
from: Config.notifications.email.username,
|
||||||
to: generateAddress(),
|
to: generateAddress(),
|
||||||
subject
|
subject
|
||||||
};
|
};
|
||||||
@@ -41,7 +41,7 @@ export default function sendSMS(text: string) {
|
|||||||
|
|
||||||
function generateAddress() {
|
function generateAddress() {
|
||||||
for (const carrier of Object.keys(carrierAddress)) {
|
for (const carrier of Object.keys(carrierAddress)) {
|
||||||
if (Config.phone.carrier && carrier === Config.phone.carrier.toLowerCase()) {
|
if (Config.notifications.phone.carrier && carrier === Config.notifications.phone.carrier.toLowerCase()) {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
return [Config.phone.number, carrierAddress[carrier]].join('@');
|
return [Config.phone.number, carrierAddress[carrier]].join('@');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user