Skip to content

Commit

Permalink
[BUGFIX] Add record to index queue when published
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonerWeb authored and dkd-kaehm committed Jul 5, 2024
1 parent e865edc commit e451f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/IndexQueue/RecordMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function processCmdmap_postProcess(

// track publish / swap events for records (workspace support)
// command "version"
if ($command === 'version' && $value['action'] === 'swap') {
if ($command === 'version' && in_array($value['action'], ['publish', 'swap']) {
$this->eventDispatcher->dispatch(
new VersionSwappedEvent($uid, $table)
);
Expand Down

0 comments on commit e451f8d

Please sign in to comment.