diff options
-rw-r--r-- | juick-server/src/main/java/com/juick/service/TelegramServiceImpl.java | 4 |
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( |