Fixed bug with invalid event author
This commit is contained in:
parent
c17280f55a
commit
f989140b77
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue