Skip to content

Commit

Permalink
feat(cb2-10603): debug
Browse files Browse the repository at this point in the history
  • Loading branch information
naathanbrown committed Apr 2, 2024
1 parent 149ca2d commit 083bbfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/sqsProcess.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import DynamoDB from "aws-sdk/clients/dynamodb";

export const processRecord = (record: any) => {
const recordBody = JSON.parse(record.body.Message);
const recordBody = JSON.parse(JSON.parse(record.body).Message);

console.log("record body is, ", recordBody);
console.log("record eventName is, ", recordBody.eventName);
console.log("record dynamodb is, ", recordBody.dynamodb);
Expand Down

0 comments on commit 083bbfe

Please sign in to comment.