Skip to content

Commit

Permalink
fix: Use params instead of data in pagination (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Nov 19, 2022
1 parent 04f5bdf commit e333ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paginator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Paginator<Params, Result>
method: 'get',
// if no params specified, use link header
url: params ? this.initialUrl : this.nextUrl,
data: params ?? this.nextParams,
params: params ?? this.nextParams,
});

this.nextUrl = this.pluckNext(response.headers?.link as string);
Expand Down

0 comments on commit e333ac1

Please sign in to comment.