Skip to content

Commit

Permalink
Merge pull request #25 from markhuot/queue-helper
Browse files Browse the repository at this point in the history
pint
  • Loading branch information
markhuot authored Jun 13, 2024
2 parents e31cfb4 + be82dde commit 5a773b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
use Craft;

if (! function_exists('queue')) {
function queue($callback) {
function queue($callback)
{
$result = $callback();

Craft::$app->queue->run();
Expand Down

0 comments on commit 5a773b6

Please sign in to comment.