From 0c13a39d042341737fada2e57e56025cb7ef7301 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 11 Nov 2023 15:33:31 +0100 Subject: [PATCH] Image: don't re-queue thumbnails when deleting them --- models/Image.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/Image.php b/models/Image.php index 27b5734..fb4d8c7 100644 --- a/models/Image.php +++ b/models/Image.php @@ -160,8 +160,7 @@ class Image extends Asset } return Registry::get('db')->query(' - UPDATE assets_thumbs - SET filename = NULL + DELETE FROM assets_thumbs WHERE id_asset = {int:id_asset}', ['id_asset' => $this->id_asset]); }