Skip to content

Commit

Permalink
remove object ref
Browse files Browse the repository at this point in the history
  • Loading branch information
mathysth committed Oct 23, 2024
1 parent 8c86a44 commit de0e96e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/api/controllers/brightdata/brightdata.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,16 @@ export class BrightDataController {
queryParams: IBrightDataQueryParams,
formattedUrls: { url: string }[]
): Promise<IBrightDataResponse> {
queryParams.endpoint = `${this.host}${queryParams.endpoint}`;
const updatedQueryParams = {
...queryParams,
endpoint: `${this.host}${queryParams.endpoint}`,
};

try {
const response = await axios<IBrightDataResponse>({
method: "POST",
url: this.brightDataBaseApiUrl,
params: queryParams,
params: updatedQueryParams,
headers: {
Authorization: `Bearer ${this.brightDataToken}`,
"Content-Type": "application/json",
Expand Down

0 comments on commit de0e96e

Please sign in to comment.