Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
return better response in update user data
Browse files Browse the repository at this point in the history
  • Loading branch information
Satya Kresna committed Jun 22, 2022
1 parent 04a1468 commit a9bd563
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ public function update($user_id, $data)
$httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);

return array($response, $httpcode);
return array(
'data' => json_decode($response, true),
'code' => (int) $httpcode
);
}

public function getRawAvailableRoles($user_id, $client_id)
Expand Down

0 comments on commit a9bd563

Please sign in to comment.