feature/fitlien-updated-index (#68)
All checks were successful
Deploy FitLien services to Dev / Deploy to Dev (push) Successful in 4m4s
All checks were successful
Deploy FitLien services to Dev / Deploy to Dev (push) Successful in 4m4s
Reviewed-on: #68 Co-authored-by: DhanshCOSQ <dhanshas@cosq.net> Co-committed-by: DhanshCOSQ <dhanshas@cosq.net>
This commit is contained in:
parent
cbe59ee4f1
commit
d8bf928da8
@ -26,7 +26,7 @@ interface EmailRequest {
|
||||
|
||||
interface Attachment {
|
||||
filename: string;
|
||||
content: string | Buffer; // Base64 encoded string or Buffer
|
||||
content: string | Buffer;
|
||||
contentType?: string;
|
||||
}
|
||||
|
||||
@ -37,7 +37,7 @@ const stripHtml = (html: string): string => {
|
||||
|
||||
async function sendSimpleEmail(data: EmailRequest, recipients: string[]) {
|
||||
const ses = new SESClient({
|
||||
region: '#{AWS_REGION}#',
|
||||
region: process.env.AWS_REGION,
|
||||
credentials: {
|
||||
accessKeyId: process.env.AWS_ACCESS_KEY_ID || '',
|
||||
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY || ''
|
||||
@ -63,7 +63,7 @@ async function sendSimpleEmail(data: EmailRequest, recipients: string[]) {
|
||||
|
||||
async function sendEmailWithAttachments(data: EmailRequest, recipients: string[]) {
|
||||
const ses = new SESClient({
|
||||
region: 'ap-south-1',
|
||||
region: process.env.AWS_REGION,
|
||||
credentials: {
|
||||
accessKeyId: process.env.AWS_ACCESS_KEY_ID || '',
|
||||
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY || ''
|
||||
|
||||
Loading…
Reference in New Issue
Block a user