Skip to content
Snippets Groups Projects
Verified Commit ecc6fdf2 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Counting bugfix

parent 59d33ec1
No related branches found
No related tags found
No related merge requests found
Pipeline #1992 passed
...@@ -3,7 +3,7 @@ image: docker:19.03.1 ...@@ -3,7 +3,7 @@ image: docker:19.03.1
variables: variables:
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
IMAGE_TAG: $CI_REGISTRY_IMAGE IMAGE_TAG: $CI_REGISTRY_IMAGE
IMAGE_VER: 1.6.0 IMAGE_VER: 1.6.1
services: services:
- docker:19.03.1-dind - docker:19.03.1-dind
......
...@@ -55,8 +55,8 @@ sub main { ...@@ -55,8 +55,8 @@ sub main {
my $tx = $c->pg->db->begin; my $tx = $c->pg->db->begin;
$c->pg->db->delete('sockets', [ $c->pg->db->delete('sockets', [
{id => $key}, {id => $key},
{user_id => $message->{payload} || undef }, $user ? {user_id => $user->{id}}:{}
]); ]);
$c->pg->db->insert('sockets', { $c->pg->db->insert('sockets', {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment