app/commands/decidim/initiatives/spawn_committee_request.rb in decidim-initiatives-0.29.0 vs app/commands/decidim/initiatives/spawn_committee_request.rb in decidim-initiatives-0.29.1
- old
+ new
@@ -55,10 +55,10 @@
event: "decidim.events.initiatives.spawn_committee_request",
event_class: Decidim::Initiatives::SpawnCommitteeRequestEvent,
resource: initiative,
affected_users: [initiative.author],
force_send: true,
- extra: { applicant: current_user }
+ extra: { applicant: { id: current_user&.id } }
)
end
def initiative
@initiative ||= Decidim::Initiative.find(form.initiative_id)