From c267bf7a4f51c5fa9e2e24de398f887a97f2317f Mon Sep 17 00:00:00 2001 From: azdak Date: Wed, 18 Dec 2024 17:04:46 -0600 Subject: [PATCH] Update addScansByProperty.ts --- src/routes/addScansByProperty.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/addScansByProperty.ts b/src/routes/addScansByProperty.ts index 091a4cd..69f9142 100644 --- a/src/routes/addScansByProperty.ts +++ b/src/routes/addScansByProperty.ts @@ -19,7 +19,7 @@ export const addScansByProperty = async ({ request, reply }) => { //await db.connect(); - const urls = await graphql({ + const urls = (await graphql({ request, query: ` query{ @@ -31,7 +31,7 @@ export const addScansByProperty = async ({ request, reply }) => { variables: { property_id: request.body.propertyId, }, - }); + })).data?.urls; //await db.clean();