{"action":"created","comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments/67286953","id":67286953,"diff_hunk":"@@ -100,11 +100,13 @@ angular.module('habitrpg')\n               }\n             });\n           }\n-\n-          return Tasks.getUserTasks();\n+          let completedTodos = Tasks.getUserTasks(true);\n+          let nonCompletedTasks = Tasks.getUserTasks();\n+          return Promise.all([completedTodos, nonCompletedTasks]);","path":"website/client/js/services/userServices.js","position":8,"original_position":8,"commit_id":"bf3fea01cce23459249fa15b59d689db3ff2127f","original_commit_id":"bf3fea01cce23459249fa15b59d689db3ff2127f","user":{"login":"Hus274","id":17734753,"avatar_url":"https://avatars.githubusercontent.com/u/17734753?v=3","gravatar_id":"","url":"https://api.github.com/users/Hus274","html_url":"https://github.com/Hus274","followers_url":"https://api.github.com/users/Hus274/followers","following_url":"https://api.github.com/users/Hus274/following{/other_user}","gists_url":"https://api.github.com/users/Hus274/gists{/gist_id}","starred_url":"https://api.github.com/users/Hus274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hus274/subscriptions","organizations_url":"https://api.github.com/users/Hus274/orgs","repos_url":"https://api.github.com/users/Hus274/repos","events_url":"https://api.github.com/users/Hus274/events{/privacy}","received_events_url":"https://api.github.com/users/Hus274/received_events","type":"User","site_admin":false},"body":"Sad day, it was a lot nicer with the promises :p","created_at":"2016-06-16T04:49:00Z","updated_at":"2016-06-16T04:49:00Z","html_url":"https://github.com/HabitRPG/habitrpg/pull/7673#discussion_r67286953","pull_request_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/7673","_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments/67286953"},"html":{"href":"https://github.com/HabitRPG/habitrpg/pull/7673#discussion_r67286953"},"pull_request":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/7673"}}},"pull_request":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/7673","id":74016730,"html_url":"https://github.com/HabitRPG/habitrpg/pull/7673","diff_url":"https://github.com/HabitRPG/habitrpg/pull/7673.diff","patch_url":"https://github.com/HabitRPG/habitrpg/pull/7673.patch","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/7673","number":7673,"state":"open","locked":false,"title":"Making sync method call for the completed todos in addition to other tasks","user":{"login":"Hus274","id":17734753,"avatar_url":"https://avatars.githubusercontent.com/u/17734753?v=3","gravatar_id":"","url":"https://api.github.com/users/Hus274","html_url":"https://github.com/Hus274","followers_url":"https://api.github.com/users/Hus274/followers","following_url":"https://api.github.com/users/Hus274/following{/other_user}","gists_url":"https://api.github.com/users/Hus274/gists{/gist_id}","starred_url":"https://api.github.com/users/Hus274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hus274/subscriptions","organizations_url":"https://api.github.com/users/Hus274/orgs","repos_url":"https://api.github.com/users/Hus274/repos","events_url":"https://api.github.com/users/Hus274/events{/privacy}","received_events_url":"https://api.github.com/users/Hus274/received_events","type":"User","site_admin":false},"body":"[//]: # (Note: See http://habitica.wikia.com/wiki/Using_Habitica_Git#Pull_Request for more info)\r\n\r\n[//]: # (Put Issue # or URL here, if applicable. This will automatically close the issue if your PR is merged in)\r\n#7392 \r\n\r\n### Changes\r\n[//]: # (Describe the changes that were made in detail here. Include pictures if necessary)\r\nAdded a call to the api to get the completed todos while syncing.\r\n\r\n\r\n[//]: # (Put User ID in here - found in Settings -> API)\r\n----\r\nUUID: 2a4d30ee-4833-420e-be7c-ad6a6e261c5f\r\n\r\nIssue #7392","created_at":"2016-06-16T03:19:08Z","updated_at":"2016-06-16T04:49:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca4c12eae7f43372e26ceccfc7de36c6e0287e5d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/7673/commits","review_comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/7673/comments","review_comment_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/7673/comments","statuses_url":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/bf3fea01cce23459249fa15b59d689db3ff2127f","head":{"label":"Hus274:7392","ref":"7392","sha":"bf3fea01cce23459249fa15b59d689db3ff2127f","user":{"login":"Hus274","id":17734753,"avatar_url":"https://avatars.githubusercontent.com/u/17734753?v=3","gravatar_id":"","url":"https://api.github.com/users/Hus274","html_url":"https://github.com/Hus274","followers_url":"https://api.github.com/users/Hus274/followers","following_url":"https://api.github.com/users/Hus274/following{/other_user}","gists_url":"https://api.github.com/users/Hus274/gists{/gist_id}","starred_url":"https://api.github.com/users/Hus274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hus274/subscriptions","organizations_url":"https://api.github.com/users/Hus274/orgs","repos_url":"https://api.github.com/users/Hus274/repos","events_url":"https://api.github.com/users/Hus274/events{/privacy}","received_events_url":"https://api.github.com/users/Hus274/received_events","type":"User","site_admin":false},"repo":{"id":55313164,"name":"habitrpg","full_name":"Hus274/habitrpg","owner":{"login":"Hus274","id":17734753,"avatar_url":"https://avatars.githubusercontent.com/u/17734753?v=3","gravatar_id":"","url":"https://api.github.com/users/Hus274","html_url":"https://github.com/Hus274","followers_url":"https://api.github.com/users/Hus274/followers","following_url":"https://api.github.com/users/Hus274/following{/other_user}","gists_url":"https://api.github.com/users/Hus274/gists{/gist_id}","starred_url":"https://api.github.com/users/Hus274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hus274/subscriptions","organizations_url":"https://api.github.com/users/Hus274/orgs","repos_url":"https://api.github.com/users/Hus274/repos","events_url":"https://api.github.com/users/Hus274/events{/privacy}","received_events_url":"https://api.github.com/users/Hus274/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hus274/habitrpg","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":true,"url":"https://api.github.com/repos/Hus274/habitrpg","forks_url":"https://api.github.com/repos/Hus274/habitrpg/forks","keys_url":"https://api.github.com/repos/Hus274/habitrpg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hus274/habitrpg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hus274/habitrpg/teams","hooks_url":"https://api.github.com/repos/Hus274/habitrpg/hooks","issue_events_url":"https://api.github.com/repos/Hus274/habitrpg/issues/events{/number}","events_url":"https://api.github.com/repos/Hus274/habitrpg/events","assignees_url":"https://api.github.com/repos/Hus274/habitrpg/assignees{/user}","branches_url":"https://api.github.com/repos/Hus274/habitrpg/branches{/branch}","tags_url":"https://api.github.com/repos/Hus274/habitrpg/tags","blobs_url":"https://api.github.com/repos/Hus274/habitrpg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hus274/habitrpg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hus274/habitrpg/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hus274/habitrpg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hus274/habitrpg/statuses/{sha}","languages_url":"https://api.github.com/repos/Hus274/habitrpg/languages","stargazers_url":"https://api.github.com/repos/Hus274/habitrpg/stargazers","contributors_url":"https://api.github.com/repos/Hus274/habitrpg/contributors","subscribers_url":"https://api.github.com/repos/Hus274/habitrpg/subscribers","subscription_url":"https://api.github.com/repos/Hus274/habitrpg/subscription","commits_url":"https://api.github.com/repos/Hus274/habitrpg/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hus274/habitrpg/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hus274/habitrpg/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hus274/habitrpg/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hus274/habitrpg/contents/{+path}","compare_url":"https://api.github.com/repos/Hus274/habitrpg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hus274/habitrpg/merges","archive_url":"https://api.github.com/repos/Hus274/habitrpg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hus274/habitrpg/downloads","issues_url":"https://api.github.com/repos/Hus274/habitrpg/issues{/number}","pulls_url":"https://api.github.com/repos/Hus274/habitrpg/pulls{/number}","milestones_url":"https://api.github.com/repos/Hus274/habitrpg/milestones{/number}","notifications_url":"https://api.github.com/repos/Hus274/habitrpg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hus274/habitrpg/labels{/name}","releases_url":"https://api.github.com/repos/Hus274/habitrpg/releases{/id}","deployments_url":"https://api.github.com/repos/Hus274/habitrpg/deployments","created_at":"2016-04-02T19:48:03Z","updated_at":"2016-04-02T19:48:11Z","pushed_at":"2016-06-16T03:16:43Z","git_url":"git://github.com/Hus274/habitrpg.git","ssh_url":"git@github.com:Hus274/habitrpg.git","clone_url":"https://github.com/Hus274/habitrpg.git","svn_url":"https://github.com/Hus274/habitrpg","homepage":"https://habitica.com","size":385913,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"HabitRPG:develop","ref":"develop","sha":"d067403959d9ec1c6f925847d869381511442966","user":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars.githubusercontent.com/u/3834775?v=3","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"repo":{"id":4578898,"name":"habitrpg","full_name":"HabitRPG/habitrpg","owner":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars.githubusercontent.com/u/3834775?v=3","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HabitRPG/habitrpg","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":false,"url":"https://api.github.com/repos/HabitRPG/habitrpg","forks_url":"https://api.github.com/repos/HabitRPG/habitrpg/forks","keys_url":"https://api.github.com/repos/HabitRPG/habitrpg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HabitRPG/habitrpg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HabitRPG/habitrpg/teams","hooks_url":"https://api.github.com/repos/HabitRPG/habitrpg/hooks","issue_events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/events{/number}","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/events","assignees_url":"https://api.github.com/repos/HabitRPG/habitrpg/assignees{/user}","branches_url":"https://api.github.com/repos/HabitRPG/habitrpg/branches{/branch}","tags_url":"https://api.github.com/repos/HabitRPG/habitrpg/tags","blobs_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/refs{/sha}","trees_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/{sha}","languages_url":"https://api.github.com/repos/HabitRPG/habitrpg/languages","stargazers_url":"https://api.github.com/repos/HabitRPG/habitrpg/stargazers","contributors_url":"https://api.github.com/repos/HabitRPG/habitrpg/contributors","subscribers_url":"https://api.github.com/repos/HabitRPG/habitrpg/subscribers","subscription_url":"https://api.github.com/repos/HabitRPG/habitrpg/subscription","commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/commits{/sha}","git_commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/commits{/sha}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/comments{/number}","issue_comment_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments{/number}","contents_url":"https://api.github.com/repos/HabitRPG/habitrpg/contents/{+path}","compare_url":"https://api.github.com/repos/HabitRPG/habitrpg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HabitRPG/habitrpg/merges","archive_url":"https://api.github.com/repos/HabitRPG/habitrpg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HabitRPG/habitrpg/downloads","issues_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues{/number}","pulls_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls{/number}","milestones_url":"https://api.github.com/repos/HabitRPG/habitrpg/milestones{/number}","notifications_url":"https://api.github.com/repos/HabitRPG/habitrpg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/labels{/name}","releases_url":"https://api.github.com/repos/HabitRPG/habitrpg/releases{/id}","deployments_url":"https://api.github.com/repos/HabitRPG/habitrpg/deployments","created_at":"2012-06-06T22:49:48Z","updated_at":"2016-06-15T23:47:07Z","pushed_at":"2016-06-16T03:29:05Z","git_url":"git://github.com/HabitRPG/habitrpg.git","ssh_url":"git@github.com:HabitRPG/habitrpg.git","clone_url":"https://github.com/HabitRPG/habitrpg.git","svn_url":"https://github.com/HabitRPG/habitrpg","homepage":"https://habitica.com","size":451650,"stargazers_count":3937,"watchers_count":3937,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1652,"mirror_url":null,"open_issues_count":397,"forks":1652,"open_issues":397,"watchers":3937,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/7673"},"html":{"href":"https://github.com/HabitRPG/habitrpg/pull/7673"},"issue":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/issues/7673"},"comments":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/issues/7673/comments"},"review_comments":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/7673/comments"},"review_comment":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/7673/commits"},"statuses":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/bf3fea01cce23459249fa15b59d689db3ff2127f"}}}}
{"actor":{"display_login":"Hus274"}}