From 85108fcaeedc7d6da27283c5ea342022d1b03f2d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 19 Nov 2020 01:04:44 +0300 Subject: Fix checkBL destination We are checking for presence in visitor blacklist, not for user presence in others blacklist --- src/main/java/com/juick/service/UserServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/com/juick/service/UserServiceImpl.java b/src/main/java/com/juick/service/UserServiceImpl.java index 778872e9..a86b22a6 100644 --- a/src/main/java/com/juick/service/UserServiceImpl.java +++ b/src/main/java/com/juick/service/UserServiceImpl.java @@ -464,7 +464,7 @@ public class UserServiceImpl extends BaseJdbcService implements UserService { return Collections.emptyList(); return getNamedParameterJdbcTemplate().queryForList( - "SELECT user_id FROM bl_users WHERE bl_user_id = :visitor and user_id IN (:ids)", + "SELECT user_id FROM bl_users WHERE user_id = :visitor and bl_user_id IN (:ids)", new MapSqlParameterSource() .addValue("visitor", visitor) .addValue("ids", uids), -- cgit v1.2.3