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 e62b7de commit 204e6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Install/InstallSuccessListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function onSuccess(InstallationSuccess $event) {
'created_at' => (new \DateTime())->format('Y-m-d H:i:s'),
];

$shopId = $this->connection->executeQuery('SELECT id FROM installations WHERE shop = :shop', ['shop' => $event->shop()])->fetchColumn();
$shopId = $this->connection->executeQuery('SELECT id FROM installations WHERE shop = :shop', ['shop' => $event->shop()])->fetchOne();

if ($shopId) {
$this->connection->update('installations', $data, ['id' => $shopId]);
Expand All @@ -64,7 +64,7 @@ public function updateScheme(UpdateScheme $event) {
'shop' => $event->shop(),
'secure' => (int)$event->isSecure()
]
)->fetchColumn();
)->fetchOne();

if ($shopId) {
$this->connection->update('installations', ['is_secure_protocol' => (int)$event->isSecure()], ['id' => $shopId]);
Expand Down

0 comments on commit 204e6a8

Please sign in to comment.