diff options
author | Vitaly Takmazov | 2019-01-09 20:11:15 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-01-09 20:11:15 +0300 |
commit | 020b4bd111d02fd5273291c85024402ae6c46ab6 (patch) | |
tree | 4576cd2bca55b74b666316e48ffcdc2956cde229 /src/main/java/com/juick/service/CrosspostServiceImpl.java | |
parent | 6840db806515ed4a5b01f5eeec37e6154cd73e4b (diff) |
Facebook API update
Diffstat (limited to 'src/main/java/com/juick/service/CrosspostServiceImpl.java')
-rw-r--r-- | src/main/java/com/juick/service/CrosspostServiceImpl.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/juick/service/CrosspostServiceImpl.java b/src/main/java/com/juick/service/CrosspostServiceImpl.java index d190faba..0eeb8c78 100644 --- a/src/main/java/com/juick/service/CrosspostServiceImpl.java +++ b/src/main/java/com/juick/service/CrosspostServiceImpl.java @@ -180,16 +180,16 @@ public class CrosspostServiceImpl extends BaseJdbcService implements CrosspostSe @Transactional @Override - public boolean createFacebookUser(long fbID, String loginhash, String token, String fbName, String fbLink) { - return getJdbcTemplate().update("UPDATE facebook SET fb_id=?, access_token=?, fb_name=?, fb_link=? WHERE loginhash=?", - fbID, token, fbName, fbLink, loginhash) > 0; + public boolean createFacebookUser(long fbID, String loginhash, String token, String fbName) { + return getJdbcTemplate().update("UPDATE facebook SET fb_id=?, access_token=?, fb_name=? WHERE loginhash=?", + fbID, token, fbName, loginhash) > 0; } @Transactional @Override - public boolean updateFacebookUser(long fbID, String token, String fbName, String fbLink) { - return getJdbcTemplate().update("UPDATE facebook SET access_token=?,fb_name=?,fb_link=? WHERE fb_id=?", - token, fbName, fbLink, fbID) > 0; + public boolean updateFacebookUser(long fbID, String token, String fbName) { + return getJdbcTemplate().update("UPDATE facebook SET access_token=?,fb_name=? WHERE fb_id=?", + token, fbName, fbID) > 0; } @Transactional(readOnly = true) |