aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-22 16:22:52 +0300
committerGravatar Vitaly Takmazov2022-12-22 16:22:52 +0300
commit33676cf1653f2053f57a9e0ecd5c8bda6c64d986 (patch)
tree0d15ff63f24d4ebf7554c51eb79a7b4d30689c7d /src/main/java/com
parenta06f31f65ab32d71fef8a6966c6bf5a114153341 (diff)
User info updates fix
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/juick/service/UserServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/service/UserServiceImpl.java b/src/main/java/com/juick/service/UserServiceImpl.java
index 4158561c..b5581b76 100644
--- a/src/main/java/com/juick/service/UserServiceImpl.java
+++ b/src/main/java/com/juick/service/UserServiceImpl.java
@@ -390,7 +390,6 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
return user;
}
- @Transactional
@Override
public boolean updateUserInfo(final User info) {
try {
@@ -401,7 +400,8 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
info.getCountry(),
info.getUrl(),
info.getDescription()) > 0;
- } catch (DataIntegrityViolationException e) {
+ } catch (Exception e) {
+ // pgjdbc 42.x do not use SQLException
return getJdbcTemplate().update("UPDATE usersinfo SET fullname = ?, country = ?, url = ?, descr = ? WHERE user_id = ?",
info.getFullName(),
info.getCountry(),