nomagick commited on
Commit
ec9f082
·
unverified ·
1 Parent(s): 48cff2b
Files changed (1) hide show
  1. src/api/serp.ts +4 -4
src/api/serp.ts CHANGED
@@ -133,7 +133,7 @@ export class SerpHost extends RPCHost {
133
  @Param('num', { validate: (v: number) => v >= 0 && v <= 20 })
134
  num?: number,
135
  @Param('gl', { validate: (v: string) => WORLD_COUNTRY_CODES.includes(v?.toLowerCase()) }) gl?: string,
136
- @Param('hl', { validate: (v: string) => WORLD_LANGUAGES.some(l => l.code === v) }) hl?: string,
137
  @Param('location') location?: string,
138
  @Param('page') page?: number,
139
  @Param('fallback') fallback?: boolean,
@@ -294,7 +294,7 @@ export class SerpHost extends RPCHost {
294
  q,
295
  num,
296
  gl,
297
- hl,
298
  location,
299
  page,
300
  }, crawlerOptions);
@@ -324,7 +324,7 @@ export class SerpHost extends RPCHost {
324
  q: realQuery,
325
  num,
326
  gl,
327
- hl,
328
  location,
329
  }, crawlerOptions);
330
  if (results?.length) {
@@ -341,7 +341,7 @@ export class SerpHost extends RPCHost {
341
  q: realQuery,
342
  num,
343
  gl,
344
- hl,
345
  location,
346
  }, crawlerOptions);
347
  }
 
133
  @Param('num', { validate: (v: number) => v >= 0 && v <= 20 })
134
  num?: number,
135
  @Param('gl', { validate: (v: string) => WORLD_COUNTRY_CODES.includes(v?.toLowerCase()) }) gl?: string,
136
+ @Param('hl', { validate: (v: string) => WORLD_LANGUAGES.some(l => l.code === v) }) _hl?: string,
137
  @Param('location') location?: string,
138
  @Param('page') page?: number,
139
  @Param('fallback') fallback?: boolean,
 
294
  q,
295
  num,
296
  gl,
297
+ // hl,
298
  location,
299
  page,
300
  }, crawlerOptions);
 
324
  q: realQuery,
325
  num,
326
  gl,
327
+ // hl,
328
  location,
329
  }, crawlerOptions);
330
  if (results?.length) {
 
341
  q: realQuery,
342
  num,
343
  gl,
344
+ // hl,
345
  location,
346
  }, crawlerOptions);
347
  }