Skip to content

Commit

Permalink
fix: app force uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniyJ committed Nov 13, 2024
1 parent 69aaa8a commit aace2aa
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,15 @@ public ResponseObject<ApplicationInstallation> installApplication(InstallApplica
* </ul>
*/
public void deleteApplicationInstallation(String identifier) throws HttpException, HttpBadRequestException {
this.deleteApplicationInstallation(identifier, null);
}

public void deleteApplicationInstallation(String identifier, Boolean force) throws HttpException, HttpBadRequestException {
Map<String, Optional<Object>> queryParams = HttpRequestConfig.buildUrlParams(
"force", Optional.ofNullable(force)
);
String builtUrl = String.format("%s/applications/installations/%s", this.url, identifier);
this.httpClient.delete(builtUrl, new HttpRequestConfig(), Void.class);
this.httpClient.delete(builtUrl, new HttpRequestConfig(queryParams), Void.class);
}

/**
Expand Down

0 comments on commit aace2aa

Please sign in to comment.