yet another github api refactoring
[pharext/pharext.org] / app / Github / API / Repos / ReadContents.php
index fde19b88a664cb6bfb462faa3a5f88039e39d001..844df198209cb2aec4d091d0ea3f4d16a7dafd96 100644 (file)
@@ -18,7 +18,8 @@ class ReadContents 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;
                });