0

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({ logJob({
success: result.success, success: result.success,
message: result.error, message: result.error,
num_docs: 1, num_docs: result.data.length,
docs: [result.data], docs: result.data,
time_taken: timeTakenInSeconds, time_taken: timeTakenInSeconds,
team_id: team_id, team_id: team_id,
mode: "search", mode: "search",
url: req.body.url, url: req.body.query,
crawlerOptions: crawlerOptions, crawlerOptions: crawlerOptions,
pageOptions: pageOptions, pageOptions: pageOptions,
origin: origin, origin: origin,