From a1dc1ad37d401334fd5887d263c1a3cce0ef0906 Mon Sep 17 00:00:00 2001 From: Satont Date: Tue, 21 May 2024 18:30:46 +0300 Subject: [PATCH] fix(bots): correct check existed vote --- apps/bots/internal/messagehandler/handle_games_voteban.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/bots/internal/messagehandler/handle_games_voteban.go b/apps/bots/internal/messagehandler/handle_games_voteban.go index a1edd176e..d319f380d 100644 --- a/apps/bots/internal/messagehandler/handle_games_voteban.go +++ b/apps/bots/internal/messagehandler/handle_games_voteban.go @@ -24,7 +24,7 @@ func (c *MessageHandler) handleGamesVoteban(ctx context.Context, msg handleMessa return err } - if voteExists == 0 { + if voteExists > 0 { return nil }