Skip to content

Commit 3f8572e

Browse files
committed
fix(transact-get): method order
1 parent 2b01cc5 commit 3f8572e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/dynamo/transactget/transact-get.request.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)