Update the query for updating the image repository.

This commit is contained in:
Dave Smith-Hayes 2024-11-11 03:37:33 +00:00
parent b4610fc6a8
commit 0ded6e24f7

View File

@ -79,6 +79,7 @@ class ImageRepository implements ImageRepositoryInterface
title = ?,
width = ?,
height = ?
WHERE id = ?
";
$results = $this->db->getConnection()->exec($query, [
@ -86,6 +87,7 @@ class ImageRepository implements ImageRepositoryInterface
$image->getTitle(),
$image->getWidth(),
$image->getHeight(),
$image->getId(),
]);
return $results;