Skip to content

Commit

Permalink
fix date
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunnaye committed Apr 19, 2024
1 parent 1385866 commit 270c342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upsertGitHubTag/deployment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function logPayloadToS3(body, deliveryId) {
// If bucket name is not null (had to put this for the integration test)
if (process.env.BUCKET_NAME) {
const uploadDate = new Date();
const bucketPath = `${uploadDate.getFullYear()}-${uploadDate.getMonth()}-${uploadDate.getDay()}/${deliveryId}`; //formats path to YYYY-MM-DD/deliveryid
const bucketPath = `${uploadDate.getFullYear()}-${uploadDate.getMonth() + 1}-${uploadDate.getDate()}/${deliveryId}`; //formats path to YYYY-MM-DD/deliveryid

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

View workflow job for this annotation

GitHub Actions / linterWithESLint

Replace `uploadDate.getMonth()·+·1` with `⏎······uploadDate.getMonth()·+·1⏎····`

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

View workflow job for this annotation

GitHub Actions / linterWithESLint

Replace `uploadDate.getMonth()·+·1` with `⏎······uploadDate.getMonth()·+·1⏎····`

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

0 comments on commit 270c342

Please sign in to comment.