fix: editing a post does not update the search index
CommentSeeder only listened to Post\Event\Posted, so post edits left the Elasticsearch document stale.
This commit is contained in:
parent
5929a191f6
commit
ff2a252e99
|
|
@ -50,6 +50,7 @@ class CommentSeeder extends Seeder
|
|||
{
|
||||
$events->listen([
|
||||
Core\Posted::class,
|
||||
Core\Revised::class
|
||||
], function ($event) use ($callable) {
|
||||
$callable($event->post);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue