Skip to content

Commit

Permalink
fix(api): Use query params instead of body (#139)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladimir <vladimir@bourseauxlivres.fr>
  • Loading branch information
vladimirkosmala and Vladimir committed May 2, 2023
1 parent ab95d6e commit ba93b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class BunnyCdnStream {
) {
const options = this.getOptions();
options.url += `/library/${this.options.videoLibrary}/statistics`;
options.data = JSON.stringify({ ...data, videoGuid: videoId });
options.params = { ...data, videoGuid: videoId };

return this.request<BunnyCdnStream.VideoStatisticsResponse>(options, 'fetch');
}
Expand Down

0 comments on commit ba93b87

Please sign in to comment.