From 4fe17240a674f55409416a91ec0387ed1a0d4bc6 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Sat, 4 May 2024 19:57:11 -0500 Subject: [PATCH] logging --- backend/src/event-handlers/rollup/submit-rollup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/event-handlers/rollup/submit-rollup.js b/backend/src/event-handlers/rollup/submit-rollup.js index f704d59..b73958f 100644 --- a/backend/src/event-handlers/rollup/submit-rollup.js +++ b/backend/src/event-handlers/rollup/submit-rollup.js @@ -14,12 +14,15 @@ const submitRollup = async () => { const availableBatchItems = getBatchItems(); const batchItems = []; const batchItemsInfo = await fetchBatchItemsInfo(); + console.log('available batch items', availableBatchItems); for (let i = 0; i < batchItemsInfo.length; i += 1) { const { postId } = batchItemsInfo[i]; if (availableBatchItems.includes(postId)) { + console.log(`post ${postId} is available`); batchItems.push(postId); } else { // Batch items have to be submitted in the correct order, with no gaps + console.log(`post ${postId} is not available`); break; } }