fix(events): emit bulk download events in correct room

This commit is contained in:
psychedelicious 2024-03-10 23:11:51 +11:00
parent 3abc182b44
commit 1b9bbaa5a4

View File

@ -116,4 +116,4 @@ class SocketIO:
async def _handle_bulk_image_download_event(self, event: FastAPIEvent[BulkDownloadEvent]) -> None:
event_name, payload = event
await self._sio.emit(event=event_name, data=payload.model_dump())
await self._sio.emit(event=event_name, data=payload.model_dump(), room=payload.bulk_download_id)