Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #9 from manavo/patch-1
Browse files Browse the repository at this point in the history
Fix deleting
  • Loading branch information
AbdullahFaqeir committed Nov 19, 2020
2 parents d38df6d + e451ff0 commit 1ba85c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Engines/TypesenseSearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function (Model $model) {
try {
$this->typesense->deleteDocument(
$collectionIndex,
$model->{$model->getKey()}
$model->getScoutKey()
);
} catch (ObjectNotFound $e) {
// Don't need to do anything here. The object wasn't found anyway, so nothing to delete!
Expand Down Expand Up @@ -198,4 +198,4 @@ public function flush($model): void
$collection->delete();
}

}
}

0 comments on commit 1ba85c1

Please sign in to comment.