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,