Vereinfacht: sync country with finance contact API
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fbc3fc2a4d
commit
9f169b9835
3 changed files with 5 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ defmodule Mv.Vereinfacht.Changes.SyncContact do
|
|||
(Mv.Config.vereinfacht_configured?/0).
|
||||
|
||||
Only runs when relevant data changed: on create always; on update only when
|
||||
first_name, last_name, email, street, house_number, postal_code, or city changed,
|
||||
first_name, last_name, email, street, house_number, postal_code, city, or country changed,
|
||||
or when the member has no vereinfacht_contact_id yet (to avoid unnecessary API calls).
|
||||
"""
|
||||
use Ash.Resource.Change
|
||||
|
|
@ -26,7 +26,8 @@ defmodule Mv.Vereinfacht.Changes.SyncContact do
|
|||
:street,
|
||||
:house_number,
|
||||
:postal_code,
|
||||
:city
|
||||
:city,
|
||||
:country
|
||||
]
|
||||
|
||||
@impl true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue