Skip to content

Commit

Permalink
Change var name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Nov 13, 2024
1 parent f42a482 commit d99f0e7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Jobs/UpdateCollectionEntryOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ class UpdateCollectionEntryOrder implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable;

public function __construct(public $entryId, public $order)
{
}
public function __construct(public $entryId, public $entryOrder) {}

public function handle()
{
if ($entry = Entry::find($this->entryId)) {
if ($this->order) {
$entry->order($this->order);
if ($this->entryOrder) {
$entry->order($this->entryOrder);
}

$entry->save();
Expand Down

0 comments on commit d99f0e7

Please sign in to comment.