refac
This commit is contained in:
@@ -75,7 +75,7 @@ async def _has_write_access_to_note(note, user_id: str) -> bool:
|
||||
|
||||
|
||||
async def _emit_note_updated(request: Request, user: dict, note) -> None:
|
||||
await sio.emit('note-events', note.model_dump(), to=f'note:{note.id}')
|
||||
await sio.emit('events:note', note.model_dump(), to=f'note:{note.id}')
|
||||
await publish_event(
|
||||
request,
|
||||
EVENTS.NOTE_UPDATED,
|
||||
|
||||
Reference in New Issue
Block a user