Skip to content

Commit

Permalink
forgotten 😁
Browse files Browse the repository at this point in the history
  • Loading branch information
Gimenz committed Feb 26, 2024
1 parent 09fa072 commit 09fdea8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class igApi {

public searchFollower = async (userId: userId, seachTerm: seachTerm): Promise<ISearchFollow> => {
const res = await this.FetchIGAPI(
config.instagram_base_url,
config.instagram_api_v1,
`/friendships/${userId}/followers/?count=12&query=${seachTerm}&search_surface=follow_list_page`,
config.iPhone,
);
Expand All @@ -102,8 +102,8 @@ export class igApi {

public searchFollowing = async (userId: userId, seachTerm: seachTerm): Promise<ISearchFollow> => {
const res = await this.FetchIGAPI(
config.instagram_base_url,
`/api/v1/friendships/${userId}/following/?query=${seachTerm}`,
config.instagram_api_v1,
`/friendships/${userId}/following/?query=${seachTerm}`,
config.iPhone,
);
return res?.data || res
Expand Down

0 comments on commit 09fdea8

Please sign in to comment.