From b7f701322e26a08c710fae9adda36e514edadf48 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Thu, 23 Dec 2021 00:41:59 +0100
Subject: [PATCH] Uprava notifikace pres redis

---
 .gitlab-ci.yml               | 2 +-
 lib/CF/Controller/Program.pm | 7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4c2c6c0..73ec42b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,7 @@ image: docker:20.10.9
 
 variables:
   DOCKER_TLS_CERTDIR: "/certs"
-  IMAGE_VER: 2.4.0
+  IMAGE_VER: 2.4.1
 
 services:
   - docker:20.10.9-dind
diff --git a/lib/CF/Controller/Program.pm b/lib/CF/Controller/Program.pm
index 311ad34..e0ff9e4 100644
--- a/lib/CF/Controller/Program.pm
+++ b/lib/CF/Controller/Program.pm
@@ -47,13 +47,12 @@ sub update ($c) {
 
     $entry->update( $update );
 
-    $c->redis->pubsub->json('notify')->notify( notify => {
-        event   => 'program_entry_changed',
-        payload => {
+    $c->redis->pubsub->notify(
+        program_entry_changed => {
             id => $entry->id,
             %{ $update },
         }
-    });
+    );
 
 # PG_PUBSUB
 #    $pubsub->json('notify')->notify( notify => {
-- 
GitLab