Skip to content

Commit

Permalink
Entry ID fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey K committed Feb 3, 2020
1 parent af1e305 commit 84adce0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repositories {
maven { url "https://jitpack.io" }
}

version '1.0.6'
version '1.0.7'
group = 'com.github.Legionivo'

sourceCompatibility = JavaVersion.VERSION_11
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/io/github/legionivo/api/testrail/TestRail.java
Original file line number Diff line number Diff line change
Expand Up @@ -991,9 +991,9 @@ public UpdateEntry updateEntry(final int planId, @NonNull Plan.Entry entry) {
* @return the request
* @throws java.lang.IllegalArgumentException if any argument is not positive
*/
public DeleteEntry deleteEntry(final int planId, final int entryId) {
public DeleteEntry deleteEntry(final int planId, final String entryId) {
checkArgument(planId > 0, "planId should be positive");
checkArgument(entryId > 0, "entryId should be positive");
checkArgument(entryId != null, "entryId should have value");
return new DeleteEntry(planId, entryId);
}

Expand Down Expand Up @@ -1124,7 +1124,7 @@ private Delete(int planId) {
public class DeleteEntry extends Request<Void> {
private static final String REST_PATH = "delete_plan_entry/%s/%s";

private DeleteEntry(int planId, int entryId) {
private DeleteEntry(int planId, String entryId) {
super(config, Method.POST, String.format(REST_PATH, planId, entryId), Void.class);
}
}
Expand Down

0 comments on commit 84adce0

Please sign in to comment.