[ATTACHMENT] Some attachments don't have thumbnails and that's okay

This commit is contained in:
2021-08-14 15:07:17 +01:00
committed by Hugo Sales
parent b4a03b814f
commit f690bc06ae
2 changed files with 8 additions and 0 deletions

View File

@@ -221,6 +221,7 @@ class Attachment extends Entity
} else {
$this->setFilename(null);
$this->setSize(null);
// Important not to null neither width nor height
DB::persist($this);
DB::flush();
}