Skip to content

Commit

Permalink
Fix wrongly named field in TeamMemberSystemHookEvent (#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
vimsucks authored Feb 27, 2024
1 parent 80abfca commit 6c06521
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ public class TeamMemberSystemHookEvent extends AbstractSystemHookEvent {
private Date createdAt;
private Date updatedAt;
private String eventName;
@Deprecated
private String projectAccess;
private String accessLevel;
private String projectName;
private String projectPath;
private Long projectId;
Expand Down Expand Up @@ -50,14 +52,30 @@ public void setEventName(String eventName) {
this.eventName = eventName;
}

/**
* No longer used. Probably replaced by {@link #getAccessLevel()}
*/
@Deprecated
public String getProjectAccess() {
return projectAccess;
}

/**
* No longer used. Probably replaced by {@link #setAccessLevel(String)}
*/
@Deprecated
public void setProjectAccess(String projectAccess) {
this.projectAccess = projectAccess;
}

public String getAccessLevel() {
return accessLevel;
}

public void setAccessLevel(String accessLevel) {
this.accessLevel = accessLevel;
}

public String getProjectName() {
return projectName;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"created_at": "2012-07-21T07:30:56Z",
"updated_at": "2012-07-21T07:38:22Z",
"event_name": "user_add_to_team",
"project_access": "Master",
"access_level": "Master",
"project_id": 74,
"project_name": "StoreCloud",
"project_path": "storecloud",
Expand Down

0 comments on commit 6c06521

Please sign in to comment.