Skip to content

Commit

Permalink
Change the event (#20)
Browse files Browse the repository at this point in the history
* Change the event

* Fix specs
  • Loading branch information
alecslupu authored Jan 30, 2024
1 parent 79e52c3 commit f480dbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit f480dbb

Please sign in to comment.