Skip to content

Commit 7c6d64c

Browse files
committed
fix: in scanAll, use paginateScan instead of paginateQuery
1 parent 5e22aef commit 7c6d64c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class DynamoPlus {
233233
}
234234

235235
async scanAll <ExpectedReturnType = unknown>(params: ScanCommandInput, pageSize = 100): Promise<ExpectedReturnType[]> {
236-
const paginator = paginateQuery({ client: this.client, pageSize }, params)
236+
const paginator = paginateScan({ client: this.client, pageSize }, params)
237237
const results = []
238238
for await (const page of paginator) {
239239
if (page.Items) results.push(...(page.Items as ExpectedReturnType[]))

0 commit comments

Comments
 (0)