Skip to content

Commit

Permalink
Merge pull request #294 from crowdin/app-uninstall-force
Browse files Browse the repository at this point in the history
fix: app force uninstall
  • Loading branch information
yevheniyJ authored Nov 13, 2024
2 parents 69aaa8a + aace2aa commit bc15c84
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 bc15c84

Please sign in to comment.