fix: Remove incorrect json_decode in setupUser

The client body is already decoded as array, not JSON string.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jake Barnby
2026-02-06 21:13:23 +13:00
parent 6be719c9d4
commit a79f33a3a1
+1 -2
View File
@@ -58,8 +58,7 @@ trait UsersBase
}
if ($user['headers']['status-code'] === 201) {
$body = json_decode($user['body'], true);
static::$cachedUser[$projectId] = ['userId' => $body['$id']];
static::$cachedUser[$projectId] = ['userId' => $user['body']['$id']];
}
return static::$cachedUser[$projectId];