diff options
author | Vitaly Takmazov | 2016-06-27 16:38:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-06-27 16:38:56 +0300 |
commit | 1f631483bbed66a5afee88eb8341880a40075a7c (patch) | |
tree | 796f2b5ff5a8002fa9dfdab28f1bd3762fa8b4f8 /src/main/java/com/juick/api/Users.java | |
parent | 5df4a0d2631e31e4c035aaedec1d6d50e3bdb098 (diff) |
fix compilation
Diffstat (limited to 'src/main/java/com/juick/api/Users.java')
-rw-r--r-- | src/main/java/com/juick/api/Users.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/main/java/com/juick/api/Users.java b/src/main/java/com/juick/api/Users.java index 57f8c4b9..e85c517a 100644 --- a/src/main/java/com/juick/api/Users.java +++ b/src/main/java/com/juick/api/Users.java @@ -1,5 +1,6 @@ package com.juick.api; +import com.juick.User; import com.juick.json.UserSerializer; import com.juick.server.UserQueries; import org.springframework.jdbc.core.JdbcTemplate; @@ -115,15 +116,10 @@ public class Users { } if (uid > 0) { - List<Integer> uids = UserQueries.getUserReaders(sql, uid); - if (uids.size() > 0) { - List<com.juick.User> users = UserQueries.getUsersByID(sql, uids); - if (users.size() > 0) { - String json = userSerializer.serializeList(users); - Main.replyJSON(request, response, json); - return; - } - } + List<User> users = UserQueries.getUserReaders(sql, uid); + String json = userSerializer.serializeList(users); + Main.replyJSON(request, response, json); + return; } response.sendError(404); } |