Skip to content

Commit

Permalink
Fix http status check on create user. (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeet authored Jun 28, 2023
1 parent 7229287 commit 8b119a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function createUser(

$response = $this->getHttpClient()->request($method, $url, $headers, $body);

if ($response->getStatus() === 200) {
if ($response->getStatus() === 201) {
return new ResultUser(
json_decode($response->getBody(), true, 512, JSON_THROW_ON_ERROR)
);
Expand Down

0 comments on commit 8b119a8

Please sign in to comment.