ССС -> ССОМ

This commit is contained in:
Dobromir Popov
2024-04-20 14:22:53 +03:00
parent 9a1c8be4d4
commit 8dac85ff14
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ NEXT_PUBLIC_PUBLIC_URL=https://localhost:3003
DATABASE=mysql://cart:cartpw@localhost:3306/cart
EMAIL_SENDER='"ССС [ТЕСТ] " <mwitnessing@gmail.com>'
EMAIL_SENDER='"ССОМ [ТЕСТ] " <mwitnessing@gmail.com>'
# MAILTRAP_HOST_BULK=bulk.smtp.mailtrap.io
# MAILTRAP_HOST=sandbox.smtp.mailtrap.io
# MAILTRAP_USER=8ec69527ff2104

View File

@ -20,7 +20,7 @@
"dir": "auto",
"lang": "en-US",
"name": "Специално Свидетелстване София",
"short_name": "ССС",
"short_name": "ССОМ",
"start_url": "/",
"scope": "/cart"
}

View File

@ -114,7 +114,7 @@ exports.SendEmailHandlebars = async function (to, templateName, model, attachmen
const subjectMatch = templateSource.match(/{{!--\s*Subject:\s*(.*?)\s*--}}/);
const textMatch = templateSource.match(/{{!--\s*Text:\s*([\s\S]*?)\s*--}}/);
let subject = subjectMatch ? subjectMatch[1].trim() : 'ССС: Известие';
let subject = subjectMatch ? subjectMatch[1].trim() : 'ССОМ: Известие';
let textVersion = textMatch ? textMatch[1].trim() : null;
// Remove the subject and text annotations from the template source