Update search.ts
This commit is contained in:
parent
3d18f2f7a0
commit
e7d385ad32
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user