From 01c9aec6af9cf6e48546268099655d9e87c3fd1d Mon Sep 17 00:00:00 2001 From: Felix Nguyen Date: Thu, 17 Oct 2024 23:26:53 -0400 Subject: [PATCH] fix: debug in prod is my favorite thing to do definitely!! --- scripts/cron-monthly-cleanup.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/cron-monthly-cleanup.mjs b/scripts/cron-monthly-cleanup.mjs index f9aa86a..80d3987 100644 --- a/scripts/cron-monthly-cleanup.mjs +++ b/scripts/cron-monthly-cleanup.mjs @@ -37,12 +37,14 @@ const main = async () => { // Remove all objects from the bucket const objectsStream = fileStorage.listObjects(process.env.S3_BUCKET_NAME); + console.log(objectsStream); const incompleteUploadsStream = fileStorage.listIncompleteUploads( process.env.S3_BUCKET_NAME, ); const objectNames = []; const incompleteUploadNames = []; objectsStream.on('data', (obj) => { + console.log(obj); if (obj.name) { objectNames.push(obj.name); } @@ -63,6 +65,7 @@ const main = async () => { ); }); incompleteUploadsStream.on('data', (obj) => { + console.log(obj); incompleteUploadNames.push(obj.key); }); incompleteUploadsStream.on('error', (error) => {