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> {
64
64
65
65
return this . dynamoRx . batchWriteItem ( batchWriteItemInput ) . pipe (
66
66
tap ( ( batchWriteManyResponse : BatchWriteItemOutput ) => {
67
- if ( batchWriteManyResponse . UnprocessedItems ) {
67
+ if ( batchWriteManyResponse . UnprocessedItems && batchWriteManyResponse . UnprocessedItems [ this . tableName ] ) {
68
68
this . itemsToProcess . unshift ( ...batchWriteManyResponse . UnprocessedItems [ this . tableName ] )
69
69
}
70
70
} ) ,
71
71
map ( ( batchWriteManyResponse : BatchWriteItemOutput ) => ( {
72
72
remainingItems : this . itemsToProcess . length ,
73
- capacityExceeded : ! ! batchWriteManyResponse . UnprocessedItems ,
73
+ capacityExceeded : ! ! (
74
+ batchWriteManyResponse . UnprocessedItems && batchWriteManyResponse . UnprocessedItems [ this . tableName ]
75
+ ) ,
74
76
consumedCapacity : batchWriteManyResponse . ConsumedCapacity ,
75
77
} ) )
76
78
)
You can’t perform that action at this time.
0 commit comments