yet another github api refactoring
[pharext/pharext.org] / app / Github / API / Users / ReadAuthUser.php
index 6cb6de098a86f38b5cd3cb57dd1e720b599bf62e..b5c4fa92b78382c66a2052eedd3f6927e18d1160 100644 (file)
@@ -18,7 +18,8 @@ class ReadAuthUser extends Call
                        if ($response->getResponseCode() >= 400 || null === ($json = json_decode($response->getBody()))) {
                                throw new RequestException($response);
                        }
-                       $this->saveToCache([$json]);
+                       $this->result = [$json];
+                       $this->saveToCache($this->result);
                        $callback($json);
                        return true;
                });