aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-05-13 12:33:52 +0300
committerGravatar Vitaly Takmazov2016-05-13 12:33:52 +0300
commit2a595eb7e7f0c220f38b1501b75d97f7b8a234a3 (patch)
tree8b28c854864b8c25c1ca0badabd2c138b0b5ca7a
parent950177ab7959590cfd9c8678b6dbe563fcc964e0 (diff)
store chats in db, fix
-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 d06473a3..880be5e2 100644
--- a/src/main/java/com/juick/api/TelegramBotHook.java
+++ b/src/main/java/com/juick/api/TelegramBotHook.java
@@ -90,7 +90,7 @@ public class TelegramBotHook {
return jdbc.queryForList("SELECT chat_id FROM telegram_chats", Long.class);
}
void addChat(Long id) {
- jdbc.update("INSERT IGNORE TO telegram_chats(chat_id) VALUES(?)", id);
+ jdbc.update("INSERT IGNORE INTO telegram_chats(chat_id) VALUES(?)", id);
}
public void doPost(HttpServletRequest request) throws IOException {