This commit is contained in:
Kekskurse 2021-01-17 03:13:59 +01:00
parent a25a9ec0db
commit 92439a4cdb
2 changed files with 2 additions and 3 deletions

View file

@ -70,8 +70,7 @@ class PublicController extends BaseController
//Return from s3, takes a loooong time
$resizeJob = new ResizeImage((integer)$image->id, $size);
ResizeImage::dispatchSync($resizeJob);
ResizeImage::dispatchSync($image->id, $size);
$r = $this->tryReturnFromCache($cacheName."_".$size, $tenant->id, $gallery->id, $image->id);
if($r != null) {

View file

@ -29,7 +29,7 @@ class ResizeImage implements ShouldQueue
*
* @return void
*/
public function __construct($image_id, $size)
public function __construct(int $image_id, int $size)
{
$this->image_id = $image_id;
$this->size = $size;