note detail view websocket

This commit is contained in:
Yuri Kuznetsov
2025-06-30 15:30:12 +03:00
parent 9e412b686d
commit 36293123c7
4 changed files with 72 additions and 1 deletions
@@ -48,6 +48,12 @@ class WebSocketSubmit implements AfterSave
public function afterSave(Entity $entity, SaveOptions $options): void
{
if (!$entity->isNew()) {
$updateTopic = "recordUpdate.Note.{$entity->getId()}";
$this->webSocketSubmission->submit($updateTopic);
}
$parentId = $entity->getParentId();
$parentType = $entity->getParentType();