Skip to content

Commit 0252dc1

Browse files
authored
Fix for checking if we are soft deleting (#5)
1 parent 48628bc commit 0252dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Engines/TypesenseEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function update($models): void
4444
{
4545
$collection = $this->typesense->getCollectionIndex($models->first());
4646

47-
if ($this->usesSoftDelete($models->first()) && $this->softDelete) {
47+
if (config('scout.soft_delete', false) && $this->usesSoftDelete($models->first())) {
4848
$models->each->pushSoftDeleteMetadata();
4949
}
5050

0 commit comments

Comments
 (0)