Image: don't re-queue thumbnails when deleting them

This commit is contained in:
Aaron van Geffen 2023-11-11 15:33:31 +01:00
parent 3a533b7644
commit 0c13a39d04

View File

@ -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]);
}