aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-18 17:40:11 +0300
committerGravatar Vitaly Takmazov2022-12-18 17:40:11 +0300
commit54e3741aee9cfa1b941d8ffa7cfec545bce174f6 (patch)
treeb8b4131c9cd8f7d3761fcb76f86100e5a111bef2 /src
parent4ececf32501daa9359d90c054c112a3e6a35c2c7 (diff)
Fixed `banned` user field mapping
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/service/UserServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
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());