Skip to content

Commit

Permalink
Fix: apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
chlehdwon committed Nov 21, 2023
1 parent cbbc98a commit 5f5f954
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion loadenv.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ module.exports = {
slackWebhookUrl: {
report: process.env.SLACK_REPORT_WEBHOOK_URL || "", // optional
},
eventConfig: (process.env.EVENT_CONFIG && JSON.parse(process.env.EVENT_CONFIG))
eventConfig: process.env.EVENT_CONFIG && JSON.parse(process.env.EVENT_CONFIG),
};
14 changes: 8 additions & 6 deletions src/modules/stores/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ const { aws: awsEnv } = require("../../../loadenv");

const logger = require("../logger");
// Load the AWS-SDK and s3
const {getSignedUrl} = require("@aws-sdk/s3-request-presigner")
const {PutObjectCommand,S3} = require("@aws-sdk/client-s3")
const { getSignedUrl } = require("@aws-sdk/s3-request-presigner");
const { PutObjectCommand, S3 } = require("@aws-sdk/client-s3");
const { SES } = require("@aws-sdk/client-ses");

const s3 = new S3({
apiVersion: "2006-03-01",
region: 'ap-northeast-2'
});
const ses = new SES({ apiVersion: "2010-12-01",region: 'ap-northeast-2' });
region: "ap-northeast-2",
});
const ses = new SES({ apiVersion: "2010-12-01", region: "ap-northeast-2" });

// function to list Object
module.exports.getList = (directoryPath, cb) => {
Expand Down Expand Up @@ -114,7 +114,9 @@ module.exports.sendReportEmail = (reportedEmail, report, html) => {
},
Subject: {
Charset: "UTF-8",
Data: `[SPARCS TAXI] 신고가 접수되었습니다 (사유: ${reportTypeMap[report.type]})`,
Data: `[SPARCS TAXI] 신고가 접수되었습니다 (사유: ${
reportTypeMap[report.type]
})`,
},
},
Source: "[email protected]",
Expand Down

0 comments on commit 5f5f954

Please sign in to comment.