From 65ff004b63b81b1df6c1178e3206757d0b4db893 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 6 Aug 2023 22:04:57 +0100 Subject: [PATCH] Fix missing url param when called by server direct --- api/tech-stack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/tech-stack.js b/api/tech-stack.js index 788a8f6..596ba52 100644 --- a/api/tech-stack.js +++ b/api/tech-stack.js @@ -26,7 +26,7 @@ const analyze = async (url) => { exports.handler = async (event, context, callback) => { // Validate URL parameter - if (!event.queryStringParameters || !event.queryStringParameters.url) { + if (!(event.queryStringParameters || event.query).url) { return { statusCode: 400, body: JSON.stringify({ error: 'Missing url parameter' }),