Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunnaye committed May 2, 2024
1 parent 75aa9f9 commit 4c1e6a5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions upsertGitHubTag/deployment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,9 @@ function logPayloadToS3(body, deliveryId) {
if (process.env.BUCKET_NAME) {
const date = new Date();
const uploadYear = date.getFullYear();
const uploadMonth =
(date.getMonth() + 1 < 10 ? "0" : "") + (date.getMonth() + 1); // ex. get 05 instead of 5 for May
const uploadDate =
(date.getDate() < 10 ? "0" : "") + date.getDate(); // ex. get 05 instead of 5 for the 5th date
const bucketPath =
`${uploadYear}-${uploadMonth}-${uploadDate.getDate()}/${deliveryId}`;
const uploadMonth = (date.getMonth() + 1 < 10 ? "0" : "") + (date.getMonth() + 1); // ex. get 05 instead of 5 for May

Check failure on line 271 in upsertGitHubTag/deployment/index.js

View workflow job for this annotation

GitHub Actions / linterWithESLint

Insert `⏎·····`

Check failure on line 271 in upsertGitHubTag/deployment/index.js

View workflow job for this annotation

GitHub Actions / linterWithESLint

Insert `⏎·····`
const uploadDate = (date.getDate() < 10 ? "0" : "") + date.getDate(); // ex. get 05 instead of 5 for the 5th date
const bucketPath = `${uploadYear}-${uploadMonth}-${uploadDate.getDate()}/${deliveryId}`;

const command = new PutObjectCommand({
Bucket: process.env.BUCKET_NAME,
Expand Down

0 comments on commit 4c1e6a5

Please sign in to comment.