{"action":"created","issue":{"url":"https://api.github.com/repos/camusicjunkie/PowerLFM/issues/7","repository_url":"https://api.github.com/repos/camusicjunkie/PowerLFM","labels_url":"https://api.github.com/repos/camusicjunkie/PowerLFM/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/camusicjunkie/PowerLFM/issues/7/comments","events_url":"https://api.github.com/repos/camusicjunkie/PowerLFM/issues/7/events","html_url":"https://github.com/camusicjunkie/PowerLFM/issues/7","id":386428227,"node_id":"MDU6SXNzdWUzODY0MjgyMjc=","number":7,"title":"FindAllByUserName Method throws exception when no results returned","user":{"login":"jabbahudson","id":45506393,"node_id":"MDQ6VXNlcjQ1NTA2Mzkz","avatar_url":"https://avatars3.githubusercontent.com/u/45506393?v=4","gravatar_id":"","url":"https://api.github.com/users/jabbahudson","html_url":"https://github.com/jabbahudson","followers_url":"https://api.github.com/users/jabbahudson/followers","following_url":"https://api.github.com/users/jabbahudson/following{/other_user}","gists_url":"https://api.github.com/users/jabbahudson/gists{/gist_id}","starred_url":"https://api.github.com/users/jabbahudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabbahudson/subscriptions","organizations_url":"https://api.github.com/users/jabbahudson/orgs","repos_url":"https://api.github.com/users/jabbahudson/repos","events_url":"https://api.github.com/users/jabbahudson/events{/privacy}","received_events_url":"https://api.github.com/users/jabbahudson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-01T06:11:51Z","updated_at":"2018-12-01T08:51:31Z","closed_at":null,"author_association":"NONE","body":"`FindAllByUserName(\"$UserName\")` in Add-LFMVaultPass will always throw an exception when no results are found for the user, such as the first time the module is run.\r\nMicrosoft doc: https://docs.microsoft.com/en-us/uwp/api/windows.security.credentials.passwordvault.findallbyusername\r\n\r\nTry RetrieveAll method with Where-Object instead:\r\n`if (($vault.RetrieveAll() | Where-Object {$_.UserName -eq $UserName}).Count -ne 0)`"},"comment":{"url":"https://api.github.com/repos/camusicjunkie/PowerLFM/issues/comments/443411156","html_url":"https://github.com/camusicjunkie/PowerLFM/issues/7#issuecomment-443411156","issue_url":"https://api.github.com/repos/camusicjunkie/PowerLFM/issues/7","id":443411156,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzQxMTE1Ng==","user":{"login":"camusicjunkie","id":33888807,"node_id":"MDQ6VXNlcjMzODg4ODA3","avatar_url":"https://avatars3.githubusercontent.com/u/33888807?v=4","gravatar_id":"","url":"https://api.github.com/users/camusicjunkie","html_url":"https://github.com/camusicjunkie","followers_url":"https://api.github.com/users/camusicjunkie/followers","following_url":"https://api.github.com/users/camusicjunkie/following{/other_user}","gists_url":"https://api.github.com/users/camusicjunkie/gists{/gist_id}","starred_url":"https://api.github.com/users/camusicjunkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camusicjunkie/subscriptions","organizations_url":"https://api.github.com/users/camusicjunkie/orgs","repos_url":"https://api.github.com/users/camusicjunkie/repos","events_url":"https://api.github.com/users/camusicjunkie/events{/privacy}","received_events_url":"https://api.github.com/users/camusicjunkie/received_events","type":"User","site_admin":false},"created_at":"2018-12-01T08:51:31Z","updated_at":"2018-12-01T08:51:31Z","author_association":"OWNER","body":"Please create a pull request for this issue and I'll get it merged in. Thanks for catching that @jabbahudson !"}}
{"actor":{"display_login":"camusicjunkie"}}