Add event for remove_user_from_service

Follows our existing patterns of events for managing users
This commit is contained in:
David McDonald
2020-03-10 13:18:32 +00:00
parent 81e4902afb
commit c248fee772
4 changed files with 43 additions and 0 deletions

View File

@@ -25,6 +25,15 @@ def create_mobile_number_change_event(user_id, updated_by_id, original_mobile_nu
new_mobile_number=new_mobile_number)
def create_remove_user_from_service_event(user_id, removed_by_id, service_id):
_send_event(
'remove_user_from_service',
user_id=user_id,
removed_by_id=removed_by_id,
service_id=service_id
)
def create_archive_user_event(user_id, archived_by_id):
_send_event(
'archive_user',