emile 10 months ago
parent 0cdb8635df
commit 20f8027d01

@ -49,10 +49,8 @@ class OnlineUserConsumer(WebsocketConsumer):
customer_connections = []
staff_connections = []
for connection in sorted_connections:
if CustomerProfile.objects.filter(user=connection.user):
customer_connections.append(connection)
else:
staff_connections.append(connection)
print('hi')
event = {
'type': 'online_user_connection_handler',
'staff_connections': staff_connections,

Loading…
Cancel
Save