From 54e3741aee9cfa1b941d8ffa7cfec545bce174f6 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 18 Dec 2022 17:40:11 +0300 Subject: Fixed `banned` user field mapping --- src/main/java/com/juick/service/UserServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick') diff --git a/src/main/java/com/juick/service/UserServiceImpl.java b/src/main/java/com/juick/service/UserServiceImpl.java index b9e7721b..b2941d59 100644 --- a/src/main/java/com/juick/service/UserServiceImpl.java +++ b/src/main/java/com/juick/service/UserServiceImpl.java @@ -73,7 +73,7 @@ public class UserServiceImpl extends BaseJdbcService implements UserService { user.setUid(rs.getInt(1)); user.setName(rs.getString(2)); user.setCredentials(rs.getString(3)); - user.setBanned(rs.getBoolean(4)); + user.setBanned(rs.getInt(4) > 0); Timestamp seen = rs.getTimestamp(5); if (seen != null) { user.setSeen(seen.toInstant()); -- cgit v1.2.3