Merge branch 'feature_bugfix_save_book_cover' of git://github.com/philjak/BookStack into philjak-feature_bugfix_save_book_cover

This commit is contained in:
Dan Brown 2019-10-27 17:03:02 +00:00
commit e26474f233
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -82,6 +82,7 @@ class BaseRepo
$this->imageRepo->destroyImage($entity->cover); $this->imageRepo->destroyImage($entity->cover);
$image = $this->imageRepo->saveNew($coverImage, 'cover_book', $entity->id, 512, 512, true); $image = $this->imageRepo->saveNew($coverImage, 'cover_book', $entity->id, 512, 512, true);
$entity->cover()->associate($image); $entity->cover()->associate($image);
$entity->save();
} }
if ($removeImage) { if ($removeImage) {