Skip to content

Commit

Permalink
Add console.log statements for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyLYH committed Dec 13, 2023
1 parent 163e524 commit a29547b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/api/code/score/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function extractPercentageScore(inputString: string): number {

export async function POST(req: Request) {
const body = await req.json();
console.log("ENTERED SCORE: ", body);
const {
code,
dateTime,
Expand Down
2 changes: 1 addition & 1 deletion app/api/code/submit/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ On a successful OpenAI call, call the email generator (api)
export async function POST(req: Request) {
try {
const body = await req.json();

console.log("ENTERED SUBMIT: ", body);
const { code } = body;
if (!validateHTML(code)) {
return NextResponse.json(
Expand Down
1 change: 1 addition & 0 deletions app/api/feedback/result/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import nodemailer from "nodemailer";
export async function POST(req: Request) {
try {
const body = await req.json();
console.log("ENTERED SEND EMAIL: ", body);
const {
score,
challenge,
Expand Down
1 change: 1 addition & 0 deletions app/api/increment/submit/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ async function directDB_getSubmitCount() {
}

export async function PUT() {
console.log("ENTERED INCREMENT COUNTER: ");
const landingPageSubmitCount = await directDB_getSubmitCount();
await directDB_incrementSubmitCount(
landingPageSubmitCount[1]!,
Expand Down

0 comments on commit a29547b

Please sign in to comment.