Skip to content

Commit

Permalink
Allow connection name to be gathered dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaysen Nuttall committed Feb 15, 2021
1 parent 2c7cba9 commit 8827e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DynamoDbModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ public function setId($id)
*/
public function getClient()
{
return static::$dynamoDb->getClient($this->connection);
return static::$dynamoDb->getClient($this->getConnectionName());
}

/**
Expand Down

0 comments on commit 8827e04

Please sign in to comment.