aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-05-19 21:09:38 +0300
committerGravatar Vitaly Takmazov2016-05-19 21:09:38 +0300
commit2dd33510e9b82174605bc0f19514cf04d194fe52 (patch)
tree1a1357528a8a38a793412eb711859cf1f8be2555 /src/main/java/com/juick
parent7c7d4de2f68a22b63920dd4662ab530cc1b6ecfe (diff)
fix user query
Diffstat (limited to 'src/main/java/com/juick')
-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 80ae0649..6b1f946c 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 Optional<User> getUser(long tgId) {
try {
- return Optional.of(jdbc.queryForObject("SELECT id, nick, banned FROM users INNER JOIN telegram" +
+ return Optional.of(jdbc.queryForObject("SELECT id, nick, banned FROM users INNER JOIN telegram " +
"ON telegram.user_id = users.id WHERE telegram.tg_id=?", new UserQueries.UserMapper(), tgId));
} catch (EmptyResultDataAccessException e) {
return Optional.empty();