{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-newsletter/issues/38","repository_url":"https://api.github.com/repos/spatie/laravel-newsletter","labels_url":"https://api.github.com/repos/spatie/laravel-newsletter/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-newsletter/issues/38/comments","events_url":"https://api.github.com/repos/spatie/laravel-newsletter/issues/38/events","html_url":"https://github.com/spatie/laravel-newsletter/issues/38","id":165570825,"number":38,"title":"Problem with multiple calls to hasMember","user":{"login":"pdbreen","id":1670907,"avatar_url":"https://avatars.githubusercontent.com/u/1670907?v=3","gravatar_id":"","url":"https://api.github.com/users/pdbreen","html_url":"https://github.com/pdbreen","followers_url":"https://api.github.com/users/pdbreen/followers","following_url":"https://api.github.com/users/pdbreen/following{/other_user}","gists_url":"https://api.github.com/users/pdbreen/gists{/gist_id}","starred_url":"https://api.github.com/users/pdbreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdbreen/subscriptions","organizations_url":"https://api.github.com/users/pdbreen/orgs","repos_url":"https://api.github.com/users/pdbreen/repos","events_url":"https://api.github.com/users/pdbreen/events{/privacy}","received_events_url":"https://api.github.com/users/pdbreen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-14T14:08:32Z","updated_at":"2016-07-14T14:14:51Z","closed_at":"2016-07-14T14:14:51Z","body":"When making successive calls to hasMember (v3.0.2), I'm finding that the result will get stuck on false after the first proper false response.\r\n\r\nI believe the problem has to do with the `lastActionSucceeded()` check after the `lists->findByName()` within getMember.  Since no new API call was made, this check is out of place and returning the result of the prior API call which is no longer relevant to the current request.\r\n\r\n```\r\n    public function getMember($email, $listName = '')\r\n    {\r\n        $list = $this->lists->findByName($listName);\r\n\r\n        if (!$this->lastActionSucceeded()) {\r\n            return false;\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/spatie/laravel-newsletter/issues/comments/232677838","html_url":"https://github.com/spatie/laravel-newsletter/issues/38#issuecomment-232677838","issue_url":"https://api.github.com/repos/spatie/laravel-newsletter/issues/38","id":232677838,"user":{"login":"freekmurze","id":483853,"avatar_url":"https://avatars.githubusercontent.com/u/483853?v=3","gravatar_id":"","url":"https://api.github.com/users/freekmurze","html_url":"https://github.com/freekmurze","followers_url":"https://api.github.com/users/freekmurze/followers","following_url":"https://api.github.com/users/freekmurze/following{/other_user}","gists_url":"https://api.github.com/users/freekmurze/gists{/gist_id}","starred_url":"https://api.github.com/users/freekmurze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freekmurze/subscriptions","organizations_url":"https://api.github.com/users/freekmurze/orgs","repos_url":"https://api.github.com/users/freekmurze/repos","events_url":"https://api.github.com/users/freekmurze/events{/privacy}","received_events_url":"https://api.github.com/users/freekmurze/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T14:14:51Z","updated_at":"2016-07-14T14:14:51Z","body":"Maybe related to #36 \r\n\r\nPlease try upgrading to the latest version of this package and the underlying mailchimp package.\r\n\r\nReopen this issue if the problem persists."}}
{"actor":{"display_login":"freekmurze"}}