diff options
Diffstat (limited to 'app/services/event_create_service.rb')
-rw-r--r-- | app/services/event_create_service.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/services/event_create_service.rb b/app/services/event_create_service.rb index 0b7e4f187f7..0f3a485a3fd 100644 --- a/app/services/event_create_service.rb +++ b/app/services/event_create_service.rb @@ -71,14 +71,7 @@ class EventCreateService end def push(project, current_user, push_data) - # We're using an explicit transaction here so that any errors that may occur - # when creating push payload data will result in the event creation being - # rolled back as well. - Event.transaction do - event = create_event(project, current_user, Event::PUSHED) - - PushEventPayloadService.new(event, push_data).execute - end + create_event(project, current_user, Event::PUSHED, data: push_data) Users::ActivityService.new(current_user, 'push').execute end |