Skip to content

Commit

Permalink
Dispatch SearchIndexUpdated event
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Jul 16, 2024
1 parent 8403c5e commit 5d5dae9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Meilisearch/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Meilisearch\Client;
use Meilisearch\Exceptions\ApiException;
use Statamic\Contracts\Search\Searchable;
use Statamic\Events\SearchIndexUpdated;
use Statamic\Search\Documents;
use Statamic\Search\Index as BaseIndex;

Expand Down Expand Up @@ -103,6 +104,8 @@ public function update()

$this->searchables()->lazy()->each(fn ($searchables) => $this->insertMultiple($searchables));

SearchIndexUpdated::dispatch($this);

return $this;
}

Expand Down

0 comments on commit 5d5dae9

Please sign in to comment.