{"action":"created","issue":{"url":"https://api.github.com/repos/facundoolano/app-store-scraper/issues/59","repository_url":"https://api.github.com/repos/facundoolano/app-store-scraper","labels_url":"https://api.github.com/repos/facundoolano/app-store-scraper/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/facundoolano/app-store-scraper/issues/59/comments","events_url":"https://api.github.com/repos/facundoolano/app-store-scraper/issues/59/events","html_url":"https://github.com/facundoolano/app-store-scraper/issues/59","id":306822987,"node_id":"MDU6SXNzdWUzMDY4MjI5ODc=","number":59,"title":"Unable to get  reviews sorted as RECENT  ","user":{"login":"komalwce","id":22638184,"node_id":"MDQ6VXNlcjIyNjM4MTg0","avatar_url":"https://avatars0.githubusercontent.com/u/22638184?v=4","gravatar_id":"","url":"https://api.github.com/users/komalwce","html_url":"https://github.com/komalwce","followers_url":"https://api.github.com/users/komalwce/followers","following_url":"https://api.github.com/users/komalwce/following{/other_user}","gists_url":"https://api.github.com/users/komalwce/gists{/gist_id}","starred_url":"https://api.github.com/users/komalwce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komalwce/subscriptions","organizations_url":"https://api.github.com/users/komalwce/orgs","repos_url":"https://api.github.com/users/komalwce/repos","events_url":"https://api.github.com/users/komalwce/events{/privacy}","received_events_url":"https://api.github.com/users/komalwce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-20T11:17:38Z","updated_at":"2018-10-05T14:18:19Z","closed_at":null,"author_association":"NONE","body":"I am trying to sort reviews as RECENT but it is giving me an error.\r\n\r\n`TypeError: reviews.slice is not a function`\r\n\r\n`var store = require('app-store-scraper'); `\r\n`store.reviews({ id: 'XXXXXXXXX',sort: store.sort.RECENT,page: 2}).then(console.log).catch(console.log);`\r\n"},"comment":{"url":"https://api.github.com/repos/facundoolano/app-store-scraper/issues/comments/427381683","html_url":"https://github.com/facundoolano/app-store-scraper/issues/59#issuecomment-427381683","issue_url":"https://api.github.com/repos/facundoolano/app-store-scraper/issues/59","id":427381683,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzM4MTY4Mw==","user":{"login":"camnuckols","id":18559697,"node_id":"MDQ6VXNlcjE4NTU5Njk3","avatar_url":"https://avatars0.githubusercontent.com/u/18559697?v=4","gravatar_id":"","url":"https://api.github.com/users/camnuckols","html_url":"https://github.com/camnuckols","followers_url":"https://api.github.com/users/camnuckols/followers","following_url":"https://api.github.com/users/camnuckols/following{/other_user}","gists_url":"https://api.github.com/users/camnuckols/gists{/gist_id}","starred_url":"https://api.github.com/users/camnuckols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camnuckols/subscriptions","organizations_url":"https://api.github.com/users/camnuckols/orgs","repos_url":"https://api.github.com/users/camnuckols/repos","events_url":"https://api.github.com/users/camnuckols/events{/privacy}","received_events_url":"https://api.github.com/users/camnuckols/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T14:18:19Z","updated_at":"2018-10-05T14:18:19Z","author_association":"NONE","body":"It was happening with multiple id's across multiple accounts. I believe that it's happening with all applications. Also, I believe it will happen without the sorting parameter, although I'd need to do more testing with that. I spent a little bit digging into the code last night and `entry` must be coming through as something other than a string or array in the `cleanList` function. \r\n\r\n```function cleanList (results) {\r\n  const reviews = results.feed.entry || [];\r\n  return reviews.slice(1).map((review) => ({\r\n    id: review.id.label,\r\n    userName: review.author.name.label,\r\n    userUrl: review.author.uri.label,\r\n    version: review['im:version'].label,\r\n    score: parseInt(review['im:rating'].label),\r\n    title: review.title.label,\r\n    text: review.content.label,\r\n    url: review.link.attributes.href\r\n  }));\r\n}"}}
{"actor":{"display_login":"camnuckols"}}