Skip to content

Commit

Permalink
Update method name
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaminduR committed Oct 11, 2023
1 parent 5c53803 commit c001aeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public APIResource addAPIResource(APIResource apiResource, Integer tenantId) thr
prepStmt.setString(4, apiResource.getIdentifier());
prepStmt.setString(5, apiResource.getDescription());
prepStmt.setInt(6, tenantId);
prepStmt.setBoolean(7, apiResource.isRequiresAuthorization());
prepStmt.setBoolean(7, apiResource.isAuthorizationRequired());
prepStmt.executeUpdate();
prepStmt.clearParameters();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void testUpdateAPIResource(APIResource apiResource, String updatedName, S
.scopes(createdAPIResource.getScopes())
.type(createdAPIResource.getType())
.identifier(createdAPIResource.getIdentifier())
.requiresAuthorization(createdAPIResource.isRequiresAuthorization());
.requiresAuthorization(createdAPIResource.isAuthorizationRequired());

if (updatedName != null) {
apiResourceBuilder.name(updatedName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public Integer getTenantId() {
return tenantId;
}

public boolean isRequiresAuthorization() {
public boolean isAuthorizationRequired() {

return requiresAuthorization;
}
Expand Down

0 comments on commit c001aeb

Please sign in to comment.