Skip to content

Commit

Permalink
upgrade to DBAL 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegp committed Sep 30, 2024
1 parent 204e6a8 commit e3e00b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Api/StoreApiFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(Connection $connection, Client $client)

public function createClient($shop)
{
$installations = $this->connection->fetchAll('SELECT token, is_secure_protocol from installations WHERE shop = ? ORDER BY id DESC', [$shop]);
$installations = $this->connection->fetchAllAssociative('SELECT token, is_secure_protocol from installations WHERE shop = ? ORDER BY id DESC', [$shop]);

if (!count($installations)) {
throw new \Exception(sprintf('Store %s is not found in database', $shop));
Expand Down

0 comments on commit e3e00b6

Please sign in to comment.