Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
musonza committed Oct 24, 2023
1 parent 456167f commit 4a50822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/DynamoBreezeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public function batchGet(array $batchItems): DynamoBreezeResult
$requestItems = [];

foreach ($batchItems as $tableIdentifier => $details) {
$this->tableIdentifier = $tableIdentifier;
$keys = [];
foreach ($details['keys'] as $keyData) {
$keys[] = $this->expressionAttributeHandler->marshaler->marshalItem($keyData);
Expand Down
3 changes: 1 addition & 2 deletions tests/Feature/ExampleFeatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ public function testBatchGetUserPosts(): void
['PostId' => '1', 'Timestamp' => 11111],
];

$result = DynamoBreeze::withTableIdentifier(self::TABLE_IDENTIFIER)
->batchGet([
$result = DynamoBreeze::batchGet([
self::TABLE_IDENTIFIER => [
'keys' => $keysToGet,
],
Expand Down

0 comments on commit 4a50822

Please sign in to comment.