From b86e67ea267718d663f22c953361d76b2a743069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Wed, 23 Dec 2020 21:18:17 +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 0e8295a..d61fab6 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.8.1 + IMAGE_VER: 0.8.2 services: - docker:19.03.1-dind diff --git a/lib/CF/Controller/Websockets.pm b/lib/CF/Controller/Websockets.pm index c43f7f2..2ba09b1 100644 --- a/lib/CF/Controller/Websockets.pm +++ b/lib/CF/Controller/Websockets.pm @@ -25,7 +25,7 @@ sub main { $c->on(message => sub( $c, $message ) { my $data = from_json($message); - if ($data->{payload} =~ /^\d+$/) { + if ($data->{payload} =~ /^(\d+)$/) { my $user = $c->schema->resultset('User')->find({ id => $1 }); $user->update({keepalive => \'now()'}) if $user; } -- GitLab