Skip to content

Commit

Permalink
Update search.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nickscamara committed Apr 24, 2024
1 parent 3d18f2f commit e7d385a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/api/src/controllers/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e7d385a

Please sign in to comment.