Skip to content

Commit

Permalink
feat(cb2-10603): add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
naathanbrown committed Mar 27, 2024
1 parent 7c29944 commit d6368b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/functions/reportGen.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { AWSError, Lambda } from "aws-sdk";
import { Callback, Context, Handler } from "aws-lambda";
import { AWSError, Lambda } from "aws-sdk";
import { ManagedUpload } from "aws-sdk/clients/s3";
import { ActivitiesService } from "../services/ActivitiesService";
import { ERRORS } from "../assets/enum";
import { ActivitiesService } from "../services/ActivitiesService";
import { LambdaService } from "../services/LambdaService";
import { ReportGenerationService } from "../services/ReportGenerationService";
import { SendATFReport } from "../services/SendATFReport";
import { TestResultsService } from "../services/TestResultsService";
import { LambdaService } from "../services/LambdaService";

/**
* λ function to process a DynamoDB stream of test results into a queue for certificate generation.
Expand All @@ -26,6 +26,7 @@ const reportGen: Handler = async (event: any, context?: Context, callback?: Call
const sendATFReport: SendATFReport = new SendATFReport();

event.Records.forEach((record: any) => {
console.log(JSON.stringify(record));
const visit: any = JSON.parse(record.body);
const atfReportPromise = reportService
.generateATFReport(visit)
Expand Down

0 comments on commit d6368b5

Please sign in to comment.