aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-09 12:48:56 +0300
committerGravatar Vitaly Takmazov2016-12-09 16:15:30 +0300
commit87d82a83c604b81abef8766a84f1c8b6f99add59 (patch)
treebf302ed0cb2984d9db18c4d95bf8e5f7e5085620 /juick-server/src/main/java/com/juick
parent559ae343aa72db04e12b94acfa0bec30ed9a11f1 (diff)
juick-server: fix telegram service
Diffstat (limited to 'juick-server/src/main/java/com/juick')
-rw-r--r--juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java b/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java
index 30c0daca..89954944 100644
--- a/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java
@@ -19,7 +19,7 @@ public class TelegramServiceImpl extends BaseJdbcService implements TelegramServ
super(jdbc, null);
}
- @Transactional(readOnly = true)
+ @Transactional
@Override
public boolean addChat(final Long id) {
return getJdbcTemplate().update("INSERT IGNORE INTO telegram_chats(chat_id) VALUES(?)", id) > 0;
@@ -41,7 +41,7 @@ public class TelegramServiceImpl extends BaseJdbcService implements TelegramServ
return list.isEmpty() ? 0 : list.get(0);
}
- @Transactional(readOnly = true)
+ @Transactional
@Override
public boolean createTelegramUser(final long tgID, final String tgName) {
return getJdbcTemplate().update(