Skip to content

Commit a2bba79

Browse files
committed
add options
1 parent 102741e commit a2bba79

File tree

1 file changed

+4
-2
lines changed
  • src/pages/[platform]/build-a-backend/storage/list-files

1 file changed

+4
-2
lines changed

src/pages/[platform]/build-a-backend/storage/list-files/index.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ const loadNextPage = async () => {
7373
let response = await list({
7474
path: 'photos/',
7575
// Alternatively, path: ({ identityId }) => `album/{identityId}/photos/`
76-
pageSize: PAGE_SIZE,
77-
nextToken: nextToken
76+
options: {
77+
pageSize: PAGE_SIZE,
78+
nextToken: nextToken
79+
}
7880
}
7981
});
8082
if (response.nextToken) {

0 commit comments

Comments
 (0)