File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -782,8 +782,8 @@ class Table {
782782 } : null , // end if Responses
783783 // If UnprocessedKeys, return a next function
784784 result . UnprocessedKeys && Object . keys ( result . UnprocessedKeys ) . length > 0 ? {
785- next : ( ) => {
786- const nextResult = this . DocumentClient . batchGet ( Object . assign (
785+ next : async ( ) => {
786+ const nextResult = await this . DocumentClient . batchGet ( Object . assign (
787787 { RequestItems : result . UnprocessedKeys } ,
788788 options . capacity ? { ReturnConsumedCapacity : options . capacity . toUpperCase ( ) } : null
789789 ) ) . promise ( )
@@ -957,8 +957,8 @@ class Table {
957957 result ,
958958 // If UnprocessedItems, return a next function
959959 result . UnprocessedItems && Object . keys ( result . UnprocessedItems ) . length > 0 ? {
960- next : ( ) => {
961- const nextResult = this . DocumentClient . batchWrite ( Object . assign (
960+ next : async ( ) => {
961+ const nextResult = await this . DocumentClient . batchWrite ( Object . assign (
962962 { RequestItems : result . UnprocessedItems } ,
963963 options . capacity ? { ReturnConsumedCapacity : options . capacity . toUpperCase ( ) } : null ,
964964 options . metrics ? { ReturnItemCollectionMetrics : options . metrics . toUpperCase ( ) } : null
You can’t perform that action at this time.
0 commit comments