Skip to content

Commit

Permalink
Merge pull request #163 from dockstore/feature/seab-5604-date-fix
Browse files Browse the repository at this point in the history
SEAB-5604: fix date for the github lambda bucket
  • Loading branch information
hyunnaye authored Apr 19, 2024
2 parents 1385866 + a95b279 commit 1666f6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion upsertGitHubTag/deployment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ 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

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

0 comments on commit 1666f6e

Please sign in to comment.