We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8349b5c + eeccb1f commit 4b76635Copy full SHA for 4b76635
src/Engines/TypesenseEngine.php
@@ -168,8 +168,10 @@ public function update($models): void
168
$models->each->pushSoftDeleteMetadata();
169
}
170
171
- $this->typesense->importDocuments($collection, $models->map(fn($m) => $m->toSearchableArray())
172
- ->toArray());
+ if (is_null($models->first()?->deleted_at)) {
+ $this->typesense->importDocuments($collection, $models->map(fn($m) => $m->toSearchableArray())
173
+ ->toArray());
174
+ }
175
176
177
/**
0 commit comments