mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
Fix: Add alias delete event to contain email
This commit is contained in:
parent
9f33764068
commit
1ba97eef6e
1 changed files with 6 additions and 1 deletions
|
@ -363,11 +363,16 @@ def delete_alias(
|
|||
Session.commit()
|
||||
LOG.i(f"Moving {alias} to global trash {deleted_alias}")
|
||||
|
||||
alias_id = alias.id
|
||||
alias_email = alias.email
|
||||
Alias.filter(Alias.id == alias.id).delete()
|
||||
Session.commit()
|
||||
|
||||
EventDispatcher.send_event(
|
||||
user, EventContent(alias_deleted=AliasDeleted(alias_id=alias.id))
|
||||
user,
|
||||
EventContent(
|
||||
alias_deleted=AliasDeleted(alias_id=alias_id, alias_email=alias_email)
|
||||
),
|
||||
)
|
||||
if commit:
|
||||
Session.commit()
|
||||
|
|
Loading…
Reference in a new issue