Skip to content

Commit 84adce0

Browse files
author
Andrey K
committed
Entry ID fixed
1 parent af1e305 commit 84adce0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repositories {
1111
maven { url "https://jitpack.io" }
1212
}
1313

14-
version '1.0.6'
14+
version '1.0.7'
1515
group = 'com.github.Legionivo'
1616

1717
sourceCompatibility = JavaVersion.VERSION_11

src/main/java/io/github/legionivo/api/testrail/TestRail.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -991,9 +991,9 @@ public UpdateEntry updateEntry(final int planId, @NonNull Plan.Entry entry) {
991991
* @return the request
992992
* @throws java.lang.IllegalArgumentException if any argument is not positive
993993
*/
994-
public DeleteEntry deleteEntry(final int planId, final int entryId) {
994+
public DeleteEntry deleteEntry(final int planId, final String entryId) {
995995
checkArgument(planId > 0, "planId should be positive");
996-
checkArgument(entryId > 0, "entryId should be positive");
996+
checkArgument(entryId != null, "entryId should have value");
997997
return new DeleteEntry(planId, entryId);
998998
}
999999

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

1127-
private DeleteEntry(int planId, int entryId) {
1127+
private DeleteEntry(int planId, String entryId) {
11281128
super(config, Method.POST, String.format(REST_PATH, planId, entryId), Void.class);
11291129
}
11301130
}

0 commit comments

Comments
 (0)