Skip to content

Commit

Permalink
Limit metadata refresh to NodeWrittenEvent
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Oct 26, 2023
1 parent 530882c commit 54def10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/FilesMetadata/Listener/MetadataUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct(
* @param Event $event
*/
public function handle(Event $event): void {
if (!($event instanceof NodeCreatedEvent) && !($event instanceof NodeWrittenEvent)) {
if (!($event instanceof NodeWrittenEvent)) {
return;
}

Expand Down

0 comments on commit 54def10

Please sign in to comment.