Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-nirali-s committed Jan 7, 2025
1 parent 5184036 commit 207d47d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions functions/src/mail/mail_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require('dotenv').config();
// Fetch AWS credentials securely from Firebase configuration
const AWS_ACCESS_KEY_ID = process.env.AWS_ACCESS_KEY_ID;
const AWS_SECRET_ACCESS_KEY = process.env.AWS_SECRET_ACCESS_KEY;
const REGION = "ap-south-1";

console.log("AWS_ACCESS_KEY_ID:", AWS_ACCESS_KEY_ID);
console.log("AWS_SECRET_ACCESS_KEY:", AWS_SECRET_ACCESS_KEY);
Expand All @@ -14,8 +15,6 @@ if (!AWS_ACCESS_KEY_ID || !AWS_SECRET_ACCESS_KEY) {
throw new Error('AWS credentials are not set in environment variables');
}

const REGION = "ap-south-1";

const sesClient = new SESClient({
credentials: {
accessKeyId: AWS_ACCESS_KEY_ID,
Expand Down

0 comments on commit 207d47d

Please sign in to comment.