Skip to content

Commit

Permalink
Use dispatchSync instead of dispatchAfterResponse, the latter was too…
Browse files Browse the repository at this point in the history
… slow sometimes
  • Loading branch information
AngryMoustache authored Jan 29, 2024
1 parent 00543bd commit ca813fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mixins/UploadedFileMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function save()
Formats::dispatchGeneration($attachment);

// Create the thumbnail now, so we don't have an empty preview in the next response
GenerateAttachmentFormat::dispatchAfterResponse(
GenerateAttachmentFormat::dispatchSync(
$attachment,
Thumbnail::make(),
);
Expand Down

0 comments on commit ca813fc

Please sign in to comment.