aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java')
-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 30c0dacaf..89954944c 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(