aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-20 17:02:39 +0300
committerGravatar Vitaly Takmazov2022-12-20 17:02:39 +0300
commit80063166dcd0bfbbc43f4be59061abc179edbaf9 (patch)
tree4b24f365871cca3cf9c0d0a6cda5e27bd39c2908 /src/main/java/com
parent1d1924a5c85775721a89378ca39a712f336b8f74 (diff)
`updateUserInfo` fix
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/juick/service/UserServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/UserServiceImpl.java b/src/main/java/com/juick/service/UserServiceImpl.java
index b9301d06..4158561c 100644
--- a/src/main/java/com/juick/service/UserServiceImpl.java
+++ b/src/main/java/com/juick/service/UserServiceImpl.java
@@ -401,7 +401,7 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
info.getCountry(),
info.getUrl(),
info.getDescription()) > 0;
- } catch (DuplicateKeyException e) {
+ } catch (DataIntegrityViolationException e) {
return getJdbcTemplate().update("UPDATE usersinfo SET fullname = ?, country = ?, url = ?, descr = ? WHERE user_id = ?",
info.getFullName(),
info.getCountry(),