aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-05-20 00:13:11 +0300
committerGravatar Vitaly Takmazov2016-05-20 00:13:11 +0300
commit3c47c5763ad624ac525cd8d2c19b08b61a55fcda (patch)
treec4ea1533202a099d36489cb23c6aa77e3644d48c /src/main/java
parentc622ff7f5a99277c0c27da1eba527c1257471ae0 (diff)
fix query
Diffstat (limited to 'src/main/java')
-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 48e6bccb..fa05c2f0 100644
--- a/src/main/java/com/juick/api/TelegramBotHook.java
+++ b/src/main/java/com/juick/api/TelegramBotHook.java
@@ -194,7 +194,7 @@ public class TelegramBotHook {
}
private int getUser(long tgId) {
try {
- return jdbc.queryForObject("SELECT id, nick, banned FROM users INNER JOIN telegram " +
+ return jdbc.queryForObject("SELECT id FROM users INNER JOIN telegram " +
"ON telegram.user_id = users.id WHERE telegram.tg_id=?", Integer.class, tgId);
} catch (EmptyResultDataAccessException e) {
return 0;