Skip to content

Commit

Permalink
Pass non-scoped token for stats (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Dec 4, 2020
1 parent c36bd0f commit 531148f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export class StreamFeed<
return this.client.get<FollowStatsAPIResponse>({
url: 'stats/follow/',
qs,
token: this.token,
token: this.client.getOrCreateToken(),
});
}

Expand Down
4 changes: 2 additions & 2 deletions test/unit/common/feed_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ describe('[UNIT] Stream Feed (Common)', function () {
get({
url: 'stats/follow/',
qs: { followers: 'user:matthisk', following: 'user:matthisk' },
token: 'token',
token: feed.client.getOrCreateToken(),
}),
);
});
Expand All @@ -235,7 +235,7 @@ describe('[UNIT] Stream Feed (Common)', function () {
following_slugs: 'user,timeline',
followers_slugs: 'channel',
},
token: 'token',
token: feed.client.getOrCreateToken(),
}),
);
});
Expand Down

0 comments on commit 531148f

Please sign in to comment.