{"action":"created","comment":{"url":"https://api.github.com/repos/markslingerland/Sombra/pulls/comments/193838932","pull_request_review_id":126893390,"id":193838932,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzgzODkzMg==","diff_hunk":"@@ -0,0 +1,34 @@\n+﻿using System.Threading.Tasks;\n+using Microsoft.EntityFrameworkCore;\n+using Sombra.DonateService.DAL;\n+using Sombra.Messaging.Events.Charity;\n+using Sombra.Messaging.Infrastructure;\n+\n+namespace Sombra.DonateService\n+{\n+    public class CharityUpdatedEventHandler : IAsyncEventHandler<CharityUpdatedEvent>\n+    {\n+        private readonly DonationsContext _context;\n+\n+        public CharityUpdatedEventHandler(DonationsContext context)\n+        {\n+            _context = context;\n+        }\n+\n+        public async Task ConsumeAsync(CharityUpdatedEvent message)\n+        {\n+            var charityToUpdate = await _context.Charities\n+                .FirstOrDefaultAsync(c => c.CharityKey == message.CharityKey);\n+\n+            if (charityToUpdate != null)\n+            {\n+                charityToUpdate.CharityKey = message.CharityKey;","path":"Sombra.DonateService/CharityUpdatedEventHandler.cs","position":25,"original_position":25,"commit_id":"43b86e9990bb2a5904cf70ae1cfad3ed35052776","original_commit_id":"43b86e9990bb2a5904cf70ae1cfad3ed35052776","user":{"login":"JelleKerkstra","id":14293191,"node_id":"MDQ6VXNlcjE0MjkzMTkx","avatar_url":"https://avatars0.githubusercontent.com/u/14293191?v=4","gravatar_id":"","url":"https://api.github.com/users/JelleKerkstra","html_url":"https://github.com/JelleKerkstra","followers_url":"https://api.github.com/users/JelleKerkstra/followers","following_url":"https://api.github.com/users/JelleKerkstra/following{/other_user}","gists_url":"https://api.github.com/users/JelleKerkstra/gists{/gist_id}","starred_url":"https://api.github.com/users/JelleKerkstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JelleKerkstra/subscriptions","organizations_url":"https://api.github.com/users/JelleKerkstra/orgs","repos_url":"https://api.github.com/users/JelleKerkstra/repos","events_url":"https://api.github.com/users/JelleKerkstra/events{/privacy}","received_events_url":"https://api.github.com/users/JelleKerkstra/received_events","type":"User","site_admin":false},"body":"Rename Image naar CoverImage en gebruik _context.Entry(charityToUpdate).CurrentValues.SetValues(message)","created_at":"2018-06-07T18:02:26Z","updated_at":"2018-06-07T18:05:27Z","html_url":"https://github.com/markslingerland/Sombra/pull/84#discussion_r193838932","pull_request_url":"https://api.github.com/repos/markslingerland/Sombra/pulls/84","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/markslingerland/Sombra/pulls/comments/193838932"},"html":{"href":"https://github.com/markslingerland/Sombra/pull/84#discussion_r193838932"},"pull_request":{"href":"https://api.github.com/repos/markslingerland/Sombra/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/markslingerland/Sombra/pulls/84","id":193401555,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNDAxNTU1","html_url":"https://github.com/markslingerland/Sombra/pull/84","diff_url":"https://github.com/markslingerland/Sombra/pull/84.diff","patch_url":"https://github.com/markslingerland/Sombra/pull/84.patch","issue_url":"https://api.github.com/repos/markslingerland/Sombra/issues/84","number":84,"state":"open","locked":false,"title":"Donate service","user":{"login":"markslingerland","id":28604375,"node_id":"MDQ6VXNlcjI4NjA0Mzc1","avatar_url":"https://avatars2.githubusercontent.com/u/28604375?v=4","gravatar_id":"","url":"https://api.github.com/users/markslingerland","html_url":"https://github.com/markslingerland","followers_url":"https://api.github.com/users/markslingerland/followers","following_url":"https://api.github.com/users/markslingerland/following{/other_user}","gists_url":"https://api.github.com/users/markslingerland/gists{/gist_id}","starred_url":"https://api.github.com/users/markslingerland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markslingerland/subscriptions","organizations_url":"https://api.github.com/users/markslingerland/orgs","repos_url":"https://api.github.com/users/markslingerland/repos","events_url":"https://api.github.com/users/markslingerland/events{/privacy}","received_events_url":"https://api.github.com/users/markslingerland/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-07T17:57:11Z","updated_at":"2018-06-07T18:05:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0da15316b4732d8b2a02200407b7d55322272de","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/markslingerland/Sombra/pulls/84/commits","review_comments_url":"https://api.github.com/repos/markslingerland/Sombra/pulls/84/comments","review_comment_url":"https://api.github.com/repos/markslingerland/Sombra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/markslingerland/Sombra/issues/84/comments","statuses_url":"https://api.github.com/repos/markslingerland/Sombra/statuses/43b86e9990bb2a5904cf70ae1cfad3ed35052776","head":{"label":"markslingerland:DonateService","ref":"DonateService","sha":"43b86e9990bb2a5904cf70ae1cfad3ed35052776","user":{"login":"markslingerland","id":28604375,"node_id":"MDQ6VXNlcjI4NjA0Mzc1","avatar_url":"https://avatars2.githubusercontent.com/u/28604375?v=4","gravatar_id":"","url":"https://api.github.com/users/markslingerland","html_url":"https://github.com/markslingerland","followers_url":"https://api.github.com/users/markslingerland/followers","following_url":"https://api.github.com/users/markslingerland/following{/other_user}","gists_url":"https://api.github.com/users/markslingerland/gists{/gist_id}","starred_url":"https://api.github.com/users/markslingerland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markslingerland/subscriptions","organizations_url":"https://api.github.com/users/markslingerland/orgs","repos_url":"https://api.github.com/users/markslingerland/repos","events_url":"https://api.github.com/users/markslingerland/events{/privacy}","received_events_url":"https://api.github.com/users/markslingerland/received_events","type":"User","site_admin":false},"repo":{"id":124866248,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ4NjYyNDg=","name":"Sombra","full_name":"markslingerland/Sombra","owner":{"login":"markslingerland","id":28604375,"node_id":"MDQ6VXNlcjI4NjA0Mzc1","avatar_url":"https://avatars2.githubusercontent.com/u/28604375?v=4","gravatar_id":"","url":"https://api.github.com/users/markslingerland","html_url":"https://github.com/markslingerland","followers_url":"https://api.github.com/users/markslingerland/followers","following_url":"https://api.github.com/users/markslingerland/following{/other_user}","gists_url":"https://api.github.com/users/markslingerland/gists{/gist_id}","starred_url":"https://api.github.com/users/markslingerland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markslingerland/subscriptions","organizations_url":"https://api.github.com/users/markslingerland/orgs","repos_url":"https://api.github.com/users/markslingerland/repos","events_url":"https://api.github.com/users/markslingerland/events{/privacy}","received_events_url":"https://api.github.com/users/markslingerland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markslingerland/Sombra","description":"Crowdfunding platform by RedKiwi","fork":false,"url":"https://api.github.com/repos/markslingerland/Sombra","forks_url":"https://api.github.com/repos/markslingerland/Sombra/forks","keys_url":"https://api.github.com/repos/markslingerland/Sombra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markslingerland/Sombra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markslingerland/Sombra/teams","hooks_url":"https://api.github.com/repos/markslingerland/Sombra/hooks","issue_events_url":"https://api.github.com/repos/markslingerland/Sombra/issues/events{/number}","events_url":"https://api.github.com/repos/markslingerland/Sombra/events","assignees_url":"https://api.github.com/repos/markslingerland/Sombra/assignees{/user}","branches_url":"https://api.github.com/repos/markslingerland/Sombra/branches{/branch}","tags_url":"https://api.github.com/repos/markslingerland/Sombra/tags","blobs_url":"https://api.github.com/repos/markslingerland/Sombra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markslingerland/Sombra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markslingerland/Sombra/git/refs{/sha}","trees_url":"https://api.github.com/repos/markslingerland/Sombra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markslingerland/Sombra/statuses/{sha}","languages_url":"https://api.github.com/repos/markslingerland/Sombra/languages","stargazers_url":"https://api.github.com/repos/markslingerland/Sombra/stargazers","contributors_url":"https://api.github.com/repos/markslingerland/Sombra/contributors","subscribers_url":"https://api.github.com/repos/markslingerland/Sombra/subscribers","subscription_url":"https://api.github.com/repos/markslingerland/Sombra/subscription","commits_url":"https://api.github.com/repos/markslingerland/Sombra/commits{/sha}","git_commits_url":"https://api.github.com/repos/markslingerland/Sombra/git/commits{/sha}","comments_url":"https://api.github.com/repos/markslingerland/Sombra/comments{/number}","issue_comment_url":"https://api.github.com/repos/markslingerland/Sombra/issues/comments{/number}","contents_url":"https://api.github.com/repos/markslingerland/Sombra/contents/{+path}","compare_url":"https://api.github.com/repos/markslingerland/Sombra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markslingerland/Sombra/merges","archive_url":"https://api.github.com/repos/markslingerland/Sombra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markslingerland/Sombra/downloads","issues_url":"https://api.github.com/repos/markslingerland/Sombra/issues{/number}","pulls_url":"https://api.github.com/repos/markslingerland/Sombra/pulls{/number}","milestones_url":"https://api.github.com/repos/markslingerland/Sombra/milestones{/number}","notifications_url":"https://api.github.com/repos/markslingerland/Sombra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markslingerland/Sombra/labels{/name}","releases_url":"https://api.github.com/repos/markslingerland/Sombra/releases{/id}","deployments_url":"https://api.github.com/repos/markslingerland/Sombra/deployments","created_at":"2018-03-12T09:39:36Z","updated_at":"2018-06-07T11:30:39Z","pushed_at":"2018-06-07T17:57:12Z","git_url":"git://github.com/markslingerland/Sombra.git","ssh_url":"git@github.com:markslingerland/Sombra.git","clone_url":"https://github.com/markslingerland/Sombra.git","svn_url":"https://github.com/markslingerland/Sombra","homepage":"","size":6706,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"markslingerland:master","ref":"master","sha":"160ac95afc2d99f2cf151926e88fce436c60da2d","user":{"login":"markslingerland","id":28604375,"node_id":"MDQ6VXNlcjI4NjA0Mzc1","avatar_url":"https://avatars2.githubusercontent.com/u/28604375?v=4","gravatar_id":"","url":"https://api.github.com/users/markslingerland","html_url":"https://github.com/markslingerland","followers_url":"https://api.github.com/users/markslingerland/followers","following_url":"https://api.github.com/users/markslingerland/following{/other_user}","gists_url":"https://api.github.com/users/markslingerland/gists{/gist_id}","starred_url":"https://api.github.com/users/markslingerland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markslingerland/subscriptions","organizations_url":"https://api.github.com/users/markslingerland/orgs","repos_url":"https://api.github.com/users/markslingerland/repos","events_url":"https://api.github.com/users/markslingerland/events{/privacy}","received_events_url":"https://api.github.com/users/markslingerland/received_events","type":"User","site_admin":false},"repo":{"id":124866248,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ4NjYyNDg=","name":"Sombra","full_name":"markslingerland/Sombra","owner":{"login":"markslingerland","id":28604375,"node_id":"MDQ6VXNlcjI4NjA0Mzc1","avatar_url":"https://avatars2.githubusercontent.com/u/28604375?v=4","gravatar_id":"","url":"https://api.github.com/users/markslingerland","html_url":"https://github.com/markslingerland","followers_url":"https://api.github.com/users/markslingerland/followers","following_url":"https://api.github.com/users/markslingerland/following{/other_user}","gists_url":"https://api.github.com/users/markslingerland/gists{/gist_id}","starred_url":"https://api.github.com/users/markslingerland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markslingerland/subscriptions","organizations_url":"https://api.github.com/users/markslingerland/orgs","repos_url":"https://api.github.com/users/markslingerland/repos","events_url":"https://api.github.com/users/markslingerland/events{/privacy}","received_events_url":"https://api.github.com/users/markslingerland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markslingerland/Sombra","description":"Crowdfunding platform by RedKiwi","fork":false,"url":"https://api.github.com/repos/markslingerland/Sombra","forks_url":"https://api.github.com/repos/markslingerland/Sombra/forks","keys_url":"https://api.github.com/repos/markslingerland/Sombra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markslingerland/Sombra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markslingerland/Sombra/teams","hooks_url":"https://api.github.com/repos/markslingerland/Sombra/hooks","issue_events_url":"https://api.github.com/repos/markslingerland/Sombra/issues/events{/number}","events_url":"https://api.github.com/repos/markslingerland/Sombra/events","assignees_url":"https://api.github.com/repos/markslingerland/Sombra/assignees{/user}","branches_url":"https://api.github.com/repos/markslingerland/Sombra/branches{/branch}","tags_url":"https://api.github.com/repos/markslingerland/Sombra/tags","blobs_url":"https://api.github.com/repos/markslingerland/Sombra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markslingerland/Sombra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markslingerland/Sombra/git/refs{/sha}","trees_url":"https://api.github.com/repos/markslingerland/Sombra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markslingerland/Sombra/statuses/{sha}","languages_url":"https://api.github.com/repos/markslingerland/Sombra/languages","stargazers_url":"https://api.github.com/repos/markslingerland/Sombra/stargazers","contributors_url":"https://api.github.com/repos/markslingerland/Sombra/contributors","subscribers_url":"https://api.github.com/repos/markslingerland/Sombra/subscribers","subscription_url":"https://api.github.com/repos/markslingerland/Sombra/subscription","commits_url":"https://api.github.com/repos/markslingerland/Sombra/commits{/sha}","git_commits_url":"https://api.github.com/repos/markslingerland/Sombra/git/commits{/sha}","comments_url":"https://api.github.com/repos/markslingerland/Sombra/comments{/number}","issue_comment_url":"https://api.github.com/repos/markslingerland/Sombra/issues/comments{/number}","contents_url":"https://api.github.com/repos/markslingerland/Sombra/contents/{+path}","compare_url":"https://api.github.com/repos/markslingerland/Sombra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markslingerland/Sombra/merges","archive_url":"https://api.github.com/repos/markslingerland/Sombra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markslingerland/Sombra/downloads","issues_url":"https://api.github.com/repos/markslingerland/Sombra/issues{/number}","pulls_url":"https://api.github.com/repos/markslingerland/Sombra/pulls{/number}","milestones_url":"https://api.github.com/repos/markslingerland/Sombra/milestones{/number}","notifications_url":"https://api.github.com/repos/markslingerland/Sombra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markslingerland/Sombra/labels{/name}","releases_url":"https://api.github.com/repos/markslingerland/Sombra/releases{/id}","deployments_url":"https://api.github.com/repos/markslingerland/Sombra/deployments","created_at":"2018-03-12T09:39:36Z","updated_at":"2018-06-07T11:30:39Z","pushed_at":"2018-06-07T17:57:12Z","git_url":"git://github.com/markslingerland/Sombra.git","ssh_url":"git@github.com:markslingerland/Sombra.git","clone_url":"https://github.com/markslingerland/Sombra.git","svn_url":"https://github.com/markslingerland/Sombra","homepage":"","size":6706,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/markslingerland/Sombra/pulls/84"},"html":{"href":"https://github.com/markslingerland/Sombra/pull/84"},"issue":{"href":"https://api.github.com/repos/markslingerland/Sombra/issues/84"},"comments":{"href":"https://api.github.com/repos/markslingerland/Sombra/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/markslingerland/Sombra/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/markslingerland/Sombra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/markslingerland/Sombra/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/markslingerland/Sombra/statuses/43b86e9990bb2a5904cf70ae1cfad3ed35052776"}},"author_association":"OWNER"}}
{"actor":{"display_login":"JelleKerkstra"}}