From aff500e2f054b6d7b2b6a65692c6cba3048c42f8 Mon Sep 17 00:00:00 2001 From: azdak Date: Fri, 23 Aug 2024 17:55:03 -0500 Subject: [PATCH] Added userId to scan request --- src/routes/addScans.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/addScans.ts b/src/routes/addScans.ts index 9c57676..675bc80 100644 --- a/src/routes/addScans.ts +++ b/src/routes/addScans.ts @@ -37,7 +37,7 @@ export const addScans = async ({ request, reply }) => { const scanResponse = await (await fetch(`https://scan.equalify.app/generate/${discoveryDict?.[property.discovery] ?? 'url'}`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ url: property.property_url }) + body: JSON.stringify({ url: property.property_url, userId: jwtClaims.sub }) })).json(); // console.log(JSON.stringify({ scanResponse })); @@ -80,4 +80,4 @@ export const addScans = async ({ request, reply }) => { status: 'success', message: 'Scans successfully queued', }; -} \ No newline at end of file +}