yet another github api refactoring
[pharext/pharext.org] / app / Github / API / Hooks / ListHooks.php
index 6cd784e13c07961e33d2abfae19c653eb2c361f7..3d8237e992d87b9d110211221428f3ba0015acdf 100644 (file)
@@ -20,7 +20,8 @@ class ListHooks extends Call
                                throw new RequestException($response);
                        }
                        $links = new Links($response->getHeader("Link"));
-                       $this->saveToCache([$json, $links]);
+                       $this->result = [$json, $links];
+                       $this->saveToCache($this->result);
                        $callback($json, $links);
                        return true;
                });