mirror of
https://github.com/simple-login/app.git
synced 2025-09-05 22:24:43 +08:00
parent
8600b2cbba
commit
52fa6cb548
1 changed files with 6 additions and 10 deletions
|
@ -530,17 +530,13 @@ def change_alias_note(alias: Alias, note: str, commit: bool = False):
|
|||
LOG.i(f"Changing alias {alias} note.")
|
||||
|
||||
alias.note = note
|
||||
# TODO: acasajus Enable back after July 1st 2025
|
||||
if False:
|
||||
event = AliasNoteChanged(
|
||||
id=alias.id,
|
||||
email=alias.email,
|
||||
note=note,
|
||||
)
|
||||
event = AliasNoteChanged(
|
||||
id=alias.id,
|
||||
email=alias.email,
|
||||
note=note,
|
||||
)
|
||||
|
||||
EventDispatcher.send_event(alias.user, EventContent(alias_note_changed=event))
|
||||
else:
|
||||
LOG.i("Skipping sending event for now")
|
||||
EventDispatcher.send_event(alias.user, EventContent(alias_note_changed=event))
|
||||
|
||||
if commit:
|
||||
Session.commit()
|
||||
|
|
Loading…
Add table
Reference in a new issue