aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/UserServiceImpl.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-20 01:23:36 +0300
committerGravatar Vitaly Takmazov2022-12-20 01:58:27 +0300
commita3bb23ba498de4a71406e3b050a436619554271b (patch)
tree13b2fcc5002736f32bed796f1d5a5fbf4a15dff8 /src/main/java/com/juick/service/UserServiceImpl.java
parent9fd0533d314bb54ed3f1cdce97fc527f19d40651 (diff)
Fix Twitter account linkage
Diffstat (limited to 'src/main/java/com/juick/service/UserServiceImpl.java')
-rw-r--r--src/main/java/com/juick/service/UserServiceImpl.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/juick/service/UserServiceImpl.java b/src/main/java/com/juick/service/UserServiceImpl.java
index 4b07d882..b9301d06 100644
--- a/src/main/java/com/juick/service/UserServiceImpl.java
+++ b/src/main/java/com/juick/service/UserServiceImpl.java
@@ -578,9 +578,8 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
public boolean linkTwitterAccount(
final User user, final String accessToken, final String accessTokenSecret, final String screenName) {
return getJdbcTemplate().update("INSERT INTO twitter(user_id,access_token,access_token_secret,uname) " +
- "VALUES (?,?,?,?)" +
- " ON DUPLICATE KEY UPDATE access_token=?,access_token_secret=?,uname=?",
- user.getUid(), accessToken, accessTokenSecret, screenName, accessToken, accessTokenSecret, screenName) > 0;
+ "VALUES (?,?,?,?)",
+ user.getUid(), accessToken, accessTokenSecret, screenName) > 0;
}
@Transactional(readOnly = true)