aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-05-13 16:32:24 +0300
committerGravatar Vitaly Takmazov2016-05-13 16:32:24 +0300
commit0400e141715d44e6cb8f25a3709e86a2d1ac7a1a (patch)
treee134bf7a98fef37b9fd4aee3beac109abaf276b4
parent9cd79ef58a443289aa6756e8fbfabf5fe9ac8630 (diff)
fix typo
-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 05b99b02..c68d829a 100644
--- a/src/main/java/com/juick/api/TelegramBotHook.java
+++ b/src/main/java/com/juick/api/TelegramBotHook.java
@@ -132,7 +132,7 @@ public class TelegramBotHook {
}
}
private boolean createTelegramUser(long tgID, String tgName) {
- return jdbc.update("INSERT INTO telegram(tg_ig, tg_name, loginhash) VALUES(?,?,?)",
+ return jdbc.update("INSERT INTO telegram(tg_id, tg_name, loginhash) VALUES(?,?,?)",
tgID, tgName, UUID.randomUUID().toString()) > 0;
}
}