Commit f989140b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed bug with invalid event author

parent c17280f5
...@@ -29,11 +29,11 @@ class ActivityObserver < BaseObserver ...@@ -29,11 +29,11 @@ class ActivityObserver < BaseObserver
def create_event(record, status) def create_event(record, status)
Event.create( Event.create(
project: record.project, project: record.project,
target_id: record.id, target_id: record.id,
target_type: record.class.name, target_type: record.class.name,
action: status, action: status,
author_id: record.author_id author_id: current_user
) )
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment