Skip to content

Commit 48b4ed2

Browse files
return 201 instead of 200 on user creation (#28)
1 parent 9064517 commit 48b4ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/permit/sdk/api/UsersApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public CreateOrUpdateResult<UserRead> sync(UserCreate userData) throws IOExcepti
252252
try (Response response = client.newCall(request).execute()) {
253253
String responseString = processResponseBody(response);
254254
UserRead result = (new Gson()).fromJson(responseString, UserRead.class);
255-
boolean created = (response.code() == 200); // TODO: fix response code to 201
255+
boolean created = (response.code() == 201);
256256
return new CreateOrUpdateResult<UserRead>(result, created);
257257
}
258258
}

0 commit comments

Comments
 (0)