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
def create_event(record, status)
Event.create(
project: record.project,
target_id: record.id,
target_type: record.class.name,
action: status,
author_id: record.author_id
project: record.project,
target_id: record.id,
target_type: record.class.name,
action: status,
author_id: current_user
)
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