Fixed bug with invalid event author
This commit is contained in:
parent
c17280f55a
commit
f989140b77
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue