the event payload shall have string-only keys

pull/6827/head
Philipp Tessenow 11 years ago
parent 8ac4313d2d
commit d4b47ca01a
  1. 6
      lib/open_project/github_integration/hook_handler.rb

@ -15,9 +15,9 @@ module OpenProject::GithubIntegration
payload = Hash.new
payload.merge! params.require('webhook')
payload.merge! user_id: user.id,
github_event: event_type,
github_delivery: event_delivery
payload.merge! 'user_id' => user.id,
'github_event' => event_type,
'github_delivery' => event_delivery
OpenProject::Notifications.send(event_name(event_type), payload)

Loading…
Cancel
Save