diff options
author | Vitaly Takmazov | 2022-12-18 17:40:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-18 17:40:11 +0300 |
commit | 54e3741aee9cfa1b941d8ffa7cfec545bce174f6 (patch) | |
tree | b8b4131c9cd8f7d3761fcb76f86100e5a111bef2 | |
parent | 4ececf32501daa9359d90c054c112a3e6a35c2c7 (diff) |
Fixed `banned` user field mapping
-rw-r--r-- | src/main/java/com/juick/service/UserServiceImpl.java | 2 |
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()); |