Skip to content

Commit

Permalink
chore(debug): todo remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
kschelonka committed Sep 5, 2024
1 parent 34072bc commit d24d6f7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ import { getEmbeddings } from './embeddingsRequest';
*/
export async function processor(event: SQSEvent): Promise<SQSBatchResponse> {
const failedMessageIds: string[] = [];

const validPayloads: Array<EventPayload> = event.Records.map((record) => {
console.log(`record body: ${record.body}`);
console.log(`record (stringified): ${JSON.stringify(record)}`);
const message = JSON.parse(JSON.parse(record.body).Message);
return {
messageId: record.messageId,
Expand Down

0 comments on commit d24d6f7

Please sign in to comment.