File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,6 @@ export class TransactGetRequest {
2323 }
2424 }
2525
26- private mapResponse = ( response : DynamoDB . TransactGetItemsOutput ) : TransactGetFullResponse < [ ] > => {
27- const Items : any = response . Responses && Object . keys ( response . Responses ) . length
28- ? response . Responses . map ( ( item , ix ) => fromDb ( < Attributes > item . Item , this . tables [ ix ] ) )
29- : [ ]
30- return {
31- ConsumedCapacity : response . ConsumedCapacity ,
32- Items,
33- }
34- }
3526
3627 forModel < T > ( modelClazz : ModelConstructor < T > , key : Partial < T > ) : TransactGetRequest1 < T > {
3728
@@ -84,5 +75,15 @@ export class TransactGetRequest {
8475 )
8576 }
8677
78+
79+ private mapResponse = ( response : DynamoDB . TransactGetItemsOutput ) : TransactGetFullResponse < [ ] > => {
80+ const Items : any = response . Responses && Object . keys ( response . Responses ) . length
81+ ? response . Responses . map ( ( item , ix ) => fromDb ( < Attributes > item . Item , this . tables [ ix ] ) )
82+ : [ ]
83+ return {
84+ ConsumedCapacity : response . ConsumedCapacity ,
85+ Items,
86+ }
87+ }
8788}
8889
You can’t perform that action at this time.
0 commit comments