File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/dynamo/request/batchwritesingletable Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,15 @@ export class BatchWriteSingleTableRequest<T> {
6464
6565 return this . dynamoRx . batchWriteItem ( batchWriteItemInput ) . pipe (
6666 tap ( ( batchWriteManyResponse : BatchWriteItemOutput ) => {
67- if ( batchWriteManyResponse . UnprocessedItems ) {
67+ if ( batchWriteManyResponse . UnprocessedItems && batchWriteManyResponse . UnprocessedItems [ this . tableName ] ) {
6868 this . itemsToProcess . unshift ( ...batchWriteManyResponse . UnprocessedItems [ this . tableName ] )
6969 }
7070 } ) ,
7171 map ( ( batchWriteManyResponse : BatchWriteItemOutput ) => ( {
7272 remainingItems : this . itemsToProcess . length ,
73- capacityExceeded : ! ! batchWriteManyResponse . UnprocessedItems ,
73+ capacityExceeded : ! ! (
74+ batchWriteManyResponse . UnprocessedItems && batchWriteManyResponse . UnprocessedItems [ this . tableName ]
75+ ) ,
7476 consumedCapacity : batchWriteManyResponse . ConsumedCapacity ,
7577 } ) )
7678 )
You can’t perform that action at this time.
0 commit comments