Move rollup param further up

This commit is contained in:
Jose Farias
2024-10-23 19:06:55 -06:00
parent 8233254de3
commit a0c1c7d0ed
+1 -1
View File
@@ -6,7 +6,7 @@ module Bubble::Eventable
end
private
def track_event(action, creator: Current.user, rollup: latest_rollup, **particulars)
def track_event(action, rollup: latest_rollup, creator: Current.user, **particulars)
transaction do
Event.create! action: action, creator: creator, rollup: rollup, particulars: { creator_name: creator.name }.merge(particulars)
thread_entries.create! threadable: rollup