Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the event #20

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def notify_followers
return unless proposal.proposal_state.notifiable?

Decidim::EventsManager.publish(
event: "decidim.events.proposals.proposal_state_changed",
event: "decidim.events.custom_proposal_states.proposal_state_changed",
event_class: Decidim::CustomProposalStates::ProposalStateChangedEvent,
resource: proposal,
affected_users: proposal.notifiable_identities,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Admin
expect(Decidim::EventsManager)
.to receive(:publish)
.with(
event: "decidim.events.proposals.proposal_state_changed",
event: "decidim.events.custom_proposal_states.proposal_state_changed",
event_class: Decidim::CustomProposalStates::ProposalStateChangedEvent,
resource: proposal,
affected_users: match_array([proposal.creator_author]),
Expand All @@ -56,7 +56,7 @@ module Admin
expect(Decidim::EventsManager)
.to receive(:publish)
.with(
event: "decidim.events.proposals.proposal_state_changed",
event: "decidim.events.custom_proposal_states.proposal_state_changed",
event_class: Decidim::CustomProposalStates::ProposalStateChangedEvent,
resource: proposal,
affected_users: match_array([proposal.creator_author]),
Expand Down
Loading