Skip to content

Commit

Permalink
Update prepareAssetUpload.js - log
Browse files Browse the repository at this point in the history
  • Loading branch information
cami-espinozaq authored Nov 22, 2023
1 parent 7f9a120 commit 34dd693
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/prepareAssetUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export const handler = async (event) => {
Key: `data/assets/${filename}`,
}

console.log("params", params)

try {
await s3.headObject(params).promise()
return respond.error(409, 'Asset already exists.', { exists: true })
Expand Down

0 comments on commit 34dd693

Please sign in to comment.