fix(kfet/ws): 'type' field is required

This commit is contained in:
catvayor 2025-02-25 17:05:57 +01:00
parent 9178511005
commit e1bd6bc6ad

View file

@ -72,9 +72,6 @@ class DjangoJsonWebsocketConsumer(AsyncJsonWebsocketConsumer):
@classmethod
async def encode_json(cls, content):
# Remove the type value, only used by Channels to choose the group to send to
content.pop("type")
return json.dumps(content, cls=DjangoJSONEncoder)