aboutsummaryrefslogtreecommitdiff
path: root/juick-core/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-11 10:35:33 +0300
committerGravatar Vitaly Takmazov2016-07-11 10:35:33 +0300
commit3daf98ea8ee13a75fa5819fa90f24a7e095ed769 (patch)
tree75c5768d9b6d04eaf68d792ee973ce60f834c18e /juick-core/src/main
parent74794a8fdab5be56b5e24372dfef46ef875b2986 (diff)
fix groups_pms query, part 2
Diffstat (limited to 'juick-core/src/main')
-rw-r--r--juick-core/src/main/java/com/juick/server/PMQueries.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-core/src/main/java/com/juick/server/PMQueries.java b/juick-core/src/main/java/com/juick/server/PMQueries.java
index 5f912028..875cbbd6 100644
--- a/juick-core/src/main/java/com/juick/server/PMQueries.java
+++ b/juick-core/src/main/java/com/juick/server/PMQueries.java
@@ -71,7 +71,7 @@ public class PMQueries {
return sql.query("SELECT pm_streams.user_id, users.nick, pm_streams.unread FROM pm_streams "
+ "INNER JOIN users ON users.id = pm_streams.user_id "
+ "WHERE pm_streams.user_id_to=? "
- + "ORDER BY unread DESC, lastmessage DESC LIMIT " + cnt, (rs, rowNum) -> {
+ + "ORDER BY pm_streams.unread DESC, pm_streams.lastmessage DESC LIMIT " + cnt, (rs, rowNum) -> {
com.juick.User u = new com.juick.User();
u.setUID(rs.getInt(1));
u.setUName(rs.getString(2));