We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db7f593 commit b6d37dcCopy full SHA for b6d37dc
js/botasaurus-server-js/src/api-config.ts
@@ -44,7 +44,7 @@ function addScraperRoutes(app:FastifyInstance) {
44
const params: Record<string, any> = {};
45
for (const [key, value] of Object.entries(request.query as any)) {
46
if (key.endsWith("[]")) {
47
- params[key.slice(0, -2)] = value;
+ params[key.slice(0, -2)] = Array.isArray(value) ? value : [value];
48
} else {
49
params[key] = value;
50
}
0 commit comments