Also send event updates if physical address changed

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-06-04 15:41:58 +02:00
parent 03b1f84fba
commit 9e3107e3aa
22 changed files with 466 additions and 127 deletions

View File

@@ -844,7 +844,7 @@ defmodule Mobilizon.Web.Resolvers.EventTest do
args: %{event_id: event_id_int, op: :update_search_event}
)
{:ok, new_event} = Mobilizon.Events.get_event(event.id)
{:ok, new_event} = Mobilizon.Events.get_event_with_preload(event.id)
assert_delivered_email(
Email.Event.event_updated(
@@ -852,7 +852,7 @@ defmodule Mobilizon.Web.Resolvers.EventTest do
actor,
event,
new_event,
MapSet.new([:title, :begins_on, :ends_on, :status])
MapSet.new([:title, :begins_on, :ends_on, :status, :physical_address])
)
)
@@ -862,7 +862,7 @@ defmodule Mobilizon.Web.Resolvers.EventTest do
participant_actor,
event,
new_event,
MapSet.new([:title, :begins_on, :ends_on, :status])
MapSet.new([:title, :begins_on, :ends_on, :status, :physical_address])
)
)
end