Update search.ts

This commit is contained in:
Nicolas 2024-04-24 10:23:26 -07:00
parent 3d18f2f7a0
commit e7d385ad32

View File

@ -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,