From 6c0ed7bc25242ace14ad630ca7246f6c4d0993ef Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Tue, 15 Aug 2023 09:43:30 -0500 Subject: [PATCH] Added logging to debug. --- netlify/functions/nerdgraph/nerdgraph.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify/functions/nerdgraph/nerdgraph.ts b/netlify/functions/nerdgraph/nerdgraph.ts index b3e5883..9c9ba53 100644 --- a/netlify/functions/nerdgraph/nerdgraph.ts +++ b/netlify/functions/nerdgraph/nerdgraph.ts @@ -4,7 +4,7 @@ import axios from 'axios'; export const handler: Handler = async (event: HandlerEvent, context: HandlerContext) => { try { console.log(JSON.stringify(event.headers)); - const apiKey = event.headers['Api-Key']; + const apiKey = event.headers['api-key']; console.log(apiKey.substring(-5)); const query = event.body; console.log(query);