diff --git a/src/Jobs/UpdateCollectionEntryOrder.php b/src/Jobs/UpdateCollectionEntryOrder.php index 4e07e5fb..5e08ed26 100644 --- a/src/Jobs/UpdateCollectionEntryOrder.php +++ b/src/Jobs/UpdateCollectionEntryOrder.php @@ -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();