aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-05-19 20:42:48 +0300
committerGravatar Vitaly Takmazov2016-05-19 20:42:48 +0300
commit9be74d0e4b5c62e54685483b132c0311bc8aed2a (patch)
tree5c2bd5885e0bcdb9901cebf9af9c52e5849a9663 /src/main/java/com/juick/api
parent78071c4c2310af611b5297ec1098db568df6a884 (diff)
fix subscribers query
Diffstat (limited to 'src/main/java/com/juick/api')
-rw-r--r--src/main/java/com/juick/api/TelegramBotHook.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/api/TelegramBotHook.java b/src/main/java/com/juick/api/TelegramBotHook.java
index 97418418..9a743bc1 100644
--- a/src/main/java/com/juick/api/TelegramBotHook.java
+++ b/src/main/java/com/juick/api/TelegramBotHook.java
@@ -186,7 +186,7 @@ public class TelegramBotHook {
}
private List<Long> getSubscribers(int uid) {
return jdbc.queryForList("SELECT tg_id FROM telegram INNER JOIN subscr_users " +
- "ON (subscr_users.user_id=? AND telegram.tg_id=subscr_users.suser_id)", Long.class, uid, uid);
+ "ON (subscr_users.user_id=? AND telegram.user_id=subscr_users.suser_id)", Long.class, uid, uid);
}
private List<Long> getSubscribersToComments(int mid, int ignore_uid) {
return jdbc.queryForList("SELECT tg_id FROM telegram INNER JOIN subscr_messages " +