emile 10 months ago
parent 0d36efd64d
commit 0cdb8635df

Binary file not shown.

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

Loading…
Cancel
Save