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; } }