Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
GavCookCO committed Apr 24, 2024
1 parent 72487c6 commit b3c2de4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const updateElasticIndex = async (contentfulEntry, action) => {
export const handler = async (data) => {
console.log('Data: ', data);
for (const record of data.Records) {
console.log(record);
if (!record.body || !record.body.contentfulEntryId || !record.body.type)
throw new Error(`Invalid Message: ${record.body}`);

Expand Down

0 comments on commit b3c2de4

Please sign in to comment.