From e7d385ad323eaac609f947ba44965658c359b7c2 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 24 Apr 2024 10:23:26 -0700 Subject: [PATCH] Update search.ts --- apps/api/src/controllers/search.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/controllers/search.ts b/apps/api/src/controllers/search.ts index 28169c0..6839d8a 100644 --- a/apps/api/src/controllers/search.ts +++ b/apps/api/src/controllers/search.ts @@ -138,12 +138,12 @@ export async function searchController(req: Request, res: Response) { logJob({ success: result.success, message: result.error, - num_docs: 1, - docs: [result.data], + num_docs: result.data.length, + docs: result.data, time_taken: timeTakenInSeconds, team_id: team_id, mode: "search", - url: req.body.url, + url: req.body.query, crawlerOptions: crawlerOptions, pageOptions: pageOptions, origin: origin,