mirror of
https://github.com/simple-login/app.git
synced 2025-09-06 14:44:20 +08:00
Skip sending event for now
This commit is contained in:
parent
95f5c2721a
commit
3ea7c6a760
1 changed files with 9 additions and 6 deletions
|
@ -530,13 +530,16 @@ def change_alias_note(alias: Alias, note: str, commit: bool = False):
|
|||
LOG.i(f"Changing alias {alias} note.")
|
||||
|
||||
alias.note = note
|
||||
event = AliasNoteChanged(
|
||||
id=alias.id,
|
||||
email=alias.email,
|
||||
note=note,
|
||||
)
|
||||
if False:
|
||||
event = AliasNoteChanged(
|
||||
id=alias.id,
|
||||
email=alias.email,
|
||||
note=note,
|
||||
)
|
||||
|
||||
EventDispatcher.send_event(alias.user, EventContent(alias_note_changed=event))
|
||||
EventDispatcher.send_event(alias.user, EventContent(alias_note_changed=event))
|
||||
else:
|
||||
LOG.i("Skipping sending event for now")
|
||||
|
||||
if commit:
|
||||
Session.commit()
|
||||
|
|
Loading…
Add table
Reference in a new issue