From 0c264b2e5f501f3de7c3ed1842b713350f959d33 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Mon, 24 May 2021 13:56:45 +1200 Subject: [PATCH] Update shift to correct variable. --- src/Jobs/AlgoliaReindexAllJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jobs/AlgoliaReindexAllJob.php b/src/Jobs/AlgoliaReindexAllJob.php index f76f878..5b3595a 100644 --- a/src/Jobs/AlgoliaReindexAllJob.php +++ b/src/Jobs/AlgoliaReindexAllJob.php @@ -86,7 +86,7 @@ public function process() $this->currentStep++; - list($class, $id) = explode('|', array_shift($this->indexData)); + list($class, $id) = explode('|', array_shift($remainingChildren)); $obj = DataObject::get_by_id($class, $id);