diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index 1f03a3d3..65377bf6 100644 Binary files a/osinaweb/support/__pycache__/consumers.cpython-310.pyc and b/osinaweb/support/__pycache__/consumers.cpython-310.pyc differ diff --git a/osinaweb/support/consumers.py b/osinaweb/support/consumers.py index 0cbf1222..3c9155cb 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -37,7 +37,7 @@ class TicketRoomConsumer(WebsocketConsumer): self.ticket_number, self.channel_name ) self.accept() - self.ok_modify_online_user() + self.modify_online_user() def disconnect(self, close_code): @@ -168,11 +168,11 @@ class TicketRoomConsumer(WebsocketConsumer): 'reaction': new_reaction.reaction if new_reaction else None })) - def ok_modify_online_user(self): + def modify_online_user(self): connections = TicketConnection.objects.filter(ticket=self.ticket, terminated_at__isnull=True) event = { 'type': 'user_connection_handler', - 'user': self.user, + 'user': self.scope['user'], 'connections': connections, } async_to_sync(self.channel_layer.group_send)(