From 53741ee70befb8fcf78116fe248641cdfa640db6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Fri, 25 Dec 2020 22:19:30 +0100
Subject: [PATCH] Bugfix

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3c66862..28f384f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,7 +3,7 @@ image: docker:19.03.1
 variables:
   DOCKER_TLS_CERTDIR: "/certs"
   IMAGE_TAG: $CI_REGISTRY_IMAGE
-  IMAGE_VER: 0.10.0
+  IMAGE_VER: 0.10.1
 
 services:
   - docker:19.03.1-dind
diff --git a/lib/CF/Controller/Websockets.pm b/lib/CF/Controller/Websockets.pm
index ab3b44e..28ad69a 100644
--- a/lib/CF/Controller/Websockets.pm
+++ b/lib/CF/Controller/Websockets.pm
@@ -36,7 +36,7 @@ sub main {
                 ip        => $ip,
                 keepalive => \'now()',
                 user_id   => $user_id,
-            }, { key => $user_id ? 'primary':'user'} );
+            }, { key => $user_id ? 'user':'primary'} );
 
             my $all = $c->schema->resultset('Socket_view')->count(
                 { is_alive => 't', }
-- 
GitLab