Skip to content

Commit

Permalink
register fulltextsearch services for changed/delete/rename event
Browse files Browse the repository at this point in the history
Signed-off-by: nienzu <ibqqz0602@gmail.com>
  • Loading branch information
Nienzu authored and backportbot[bot] committed Apr 25, 2021
1 parent 7bf3722 commit 2c0923b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Listeners/FileChanged.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class FileChanged extends ListenersCore implements IEventListener {
* @param Event $event
*/
public function handle(Event $event): void {
if (!($event instanceof NodeWrittenEvent)) {
if (!$this->registerFullTextSearchServices() || !($event instanceof NodeWrittenEvent)) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Listeners/FileDeleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class FileDeleted extends ListenersCore implements IEventListener {
* @param Event $event
*/
public function handle(Event $event): void {
if (!($event instanceof NodeDeletedEvent)) {
if (!$this->registerFullTextSearchServices() || !($event instanceof NodeDeletedEvent)) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Listeners/FileRenamed.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class FileRenamed extends ListenersCore implements IEventListener {
* @param Event $event
*/
public function handle(Event $event): void {
if (!($event instanceof NodeRenamedEvent)) {
if (!$this->registerFullTextSearchServices() || !($event instanceof NodeRenamedEvent)) {
return;
}

Expand Down

0 comments on commit 2c0923b

Please sign in to comment.