Skip to content

Commit

Permalink
Fix bug when using common lib wihtout s3 or ses configs (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
BN-CRehn authored Sep 14, 2023
1 parent 84f2a50 commit 198b5d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/utils/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const stream = require("stream");
const AWS = require("aws-sdk");
const s3 = new AWS.S3({
httpOptions: { timeout: 1000000 },
accessKeyId: config.s3.accessKeyId,
secretAccessKey: config.s3.secretAccessKey,
accessKeyId: config.s3?.accessKeyId,
secretAccessKey: config.s3?.secretAccessKey,
});

const existsV2 = async (s3Path) => {
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/ses.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const AWS = require("aws-sdk");
const awsSes = new AWS.SES({
region: "eu-west-1",
httpOptions: { timeout: 1000000 },
accessKeyId: config.ses.accessKeyId,
secretAccessKey: config.ses.secretAccessKey,
accessKeyId: config.ses?.accessKeyId,
secretAccessKey: config.ses?.secretAccessKey,
});

const sendEmail = async (namespace, params) => {
Expand Down

0 comments on commit 198b5d4

Please sign in to comment.