From 34dd6935083cbf9639c783330702f18004e62246 Mon Sep 17 00:00:00 2001 From: Camila Espinoza <56554983+cami-espinozaq@users.noreply.github.com> Date: Wed, 22 Nov 2023 13:29:37 +0100 Subject: [PATCH] Update prepareAssetUpload.js - log --- src/backend/prepareAssetUpload.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/prepareAssetUpload.js b/src/backend/prepareAssetUpload.js index 8de0f7dd1..b43b66aa0 100644 --- a/src/backend/prepareAssetUpload.js +++ b/src/backend/prepareAssetUpload.js @@ -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 })