Spaces:
Build error
Build error
Aaron Ji commited on
Commit ·
a5e3c2d
1
Parent(s): f1aed65
fix: return 10 search results by default
Browse files
src/api/searcher-serper.ts
CHANGED
|
@@ -93,7 +93,7 @@ export class SearcherHost extends RPCHost {
|
|
| 93 |
// We want to make our search API follow SERP schema, so we need to expose 'num' parameter.
|
| 94 |
// Since we used 'count' as 'num' previously, we need to keep 'count' for old users.
|
| 95 |
// Here we combine 'count' and 'num' to 'count' for the rest of the function.
|
| 96 |
-
count = (num !== undefined ? num : count) ??
|
| 97 |
|
| 98 |
const uid = await auth.solveUID();
|
| 99 |
// Return content by default
|
|
|
|
| 93 |
// We want to make our search API follow SERP schema, so we need to expose 'num' parameter.
|
| 94 |
// Since we used 'count' as 'num' previously, we need to keep 'count' for old users.
|
| 95 |
// Here we combine 'count' and 'num' to 'count' for the rest of the function.
|
| 96 |
+
count = (num !== undefined ? num : count) ?? 10;
|
| 97 |
|
| 98 |
const uid = await auth.solveUID();
|
| 99 |
// Return content by default
|