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 May 8, 2024
1 parent f4f0768 commit 22fde3c
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 @@ -100,7 +100,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 22fde3c

Please sign in to comment.