Skip to content

Commit

Permalink
fix: correct group leave dto
Browse files Browse the repository at this point in the history
  • Loading branch information
mebo4b committed Dec 5, 2022
1 parent 5bd1618 commit cc69de1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,9 @@ public void leaveFromGroupAsTechnicalUser(String rcGroupId)

GroupResponseDTO response;
try {
RocketChatCredentials technicalUser = rcCredentialHelper.getTechnicalUser();
var technicalUser = rcCredentialHelper.getTechnicalUser();
var header = getStandardHttpHeaders(technicalUser);
var body = new GroupLeaveBodyDTO(technicalUser.getRocketChatUserId(), rcGroupId);
var body = new GroupLeaveBodyDTO(rcGroupId);
HttpEntity<GroupLeaveBodyDTO> request = new HttpEntity<>(body, header);

var url = rocketChatConfig.getApiUrl(ENDPOINT_GROUP_LEAVE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@
@Getter
@AllArgsConstructor
public class GroupLeaveBodyDTO {

private String userId;
private String roomId;
}

0 comments on commit cc69de1

Please sign in to comment.