Skip to content

Commit

Permalink
Rename parameter correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
fhanik committed Jun 5, 2017
1 parent 8bb22b3 commit dfc1bd3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -312,15 +312,15 @@ private static class AuthorizationRowMapper implements RowMapper<Approval> {


@Override @Override
public Approval mapRow(ResultSet rs, int rowNum) throws SQLException { public Approval mapRow(ResultSet rs, int rowNum) throws SQLException {
String userName = rs.getString(1); String userId = rs.getString(1);
String clientId = rs.getString(2); String clientId = rs.getString(2);
String scope = rs.getString(3); String scope = rs.getString(3);
Date expiresAt = rs.getTimestamp(4); Date expiresAt = rs.getTimestamp(4);
String status = rs.getString(5); String status = rs.getString(5);
Date lastUpdatedAt = rs.getTimestamp(6); Date lastUpdatedAt = rs.getTimestamp(6);


Approval approval = new Approval() Approval approval = new Approval()
.setUserId(userName) .setUserId(userId)
.setClientId(clientId) .setClientId(clientId)
.setScope(scope) .setScope(scope)
.setExpiresAt(expiresAt) .setExpiresAt(expiresAt)
Expand Down

0 comments on commit dfc1bd3

Please sign in to comment.