Skip to content

Commit

Permalink
Update SyncDocumentsJob.php from entry-> to doc->id
Browse files Browse the repository at this point in the history
  • Loading branch information
cookie10codes authored Nov 22, 2023
1 parent 8129fcb commit 202fd2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jobs/SyncDocumentsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ public function execute($queue) :void
//fetch each document of entry to update
foreach ($entries as $i => $entry) {

$client->collections[$this->criteria['index']]
$doc = $client->collections[$this->criteria['index']]
->documents
->upsert($collection->schema['resolver']($entry));

$upsertIds[] = $entry->id;
$upsertIds[] = $doc['id'];

$this->setProgress(
$queue,
Expand Down

0 comments on commit 202fd2a

Please sign in to comment.