diff options
author | Vitaly Takmazov | 2024-05-24 14:29:55 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-05-24 14:29:55 +0300 |
commit | dfa030a3765c5b5e43e263234155d344f5c6186e (patch) | |
tree | 53da933dddb3fffb9b7674d43a28190ed3cc79f7 /src/main/java/com/juick/service | |
parent | 65d5b915104fc79a3e8425466b6e2b88c1f35828 (diff) |
Do not allow unverified users to comment messages
Diffstat (limited to 'src/main/java/com/juick/service')
-rw-r--r-- | src/main/java/com/juick/service/TelegramService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/juick/service/TelegramService.java b/src/main/java/com/juick/service/TelegramService.java index 16ba531d..71c9b9e3 100644 --- a/src/main/java/com/juick/service/TelegramService.java +++ b/src/main/java/com/juick/service/TelegramService.java @@ -18,6 +18,7 @@ package com.juick.service; import com.juick.model.User; +import org.springframework.cache.annotation.CacheEvict; import java.util.List; @@ -32,6 +33,7 @@ public interface TelegramService { boolean createTelegramUser(long tgID, String tgName); + @CacheEvict(value = "users_by_name", allEntries = true) boolean deleteTelegramUser(Integer uid); List<Long> getTelegramIdentifiers(List<User> users); |