Skip to content

Commit 188e90a

Browse files
feat(api): manual updates
1 parent 4f364c5 commit 188e90a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 15
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zeroentropy%2Fzeroentropy-f06c49dfd4b38a4f9d5bcad56348156bbf641aa8b7968acfbf655ad6ceff2126.yml
33
openapi_spec_hash: cac52dd65fbcb65ffa7a183e764b7f06
4-
config_hash: 34c8a6deaedce51a258bc46b38c9caa0
4+
config_hash: beba80a17ba64c5439712e85129ab5ad

src/pagination.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface GetDocumentInfoListCursorParams {
1212
limit?: number;
1313
}
1414

15-
export class GetDocumentInfoListCursor<Item extends { id: string }>
15+
export class GetDocumentInfoListCursor<Item extends { path: string }>
1616
extends AbstractPage<Item>
1717
implements GetDocumentInfoListCursorResponse<Item>
1818
{
@@ -49,11 +49,11 @@ export class GetDocumentInfoListCursor<Item extends { id: string }>
4949
return null;
5050
}
5151

52-
const id = documents[documents.length - 1]?.id;
53-
if (!id) {
52+
const path = documents[documents.length - 1]?.path;
53+
if (!path) {
5454
return null;
5555
}
5656

57-
return { params: { path_gt: id } };
57+
return { params: { path_gt: path } };
5858
}
5959
}

0 commit comments

Comments
 (0)