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

This commit is contained in:
catvayor 2025-02-25 17:05:57 +01:00
parent 991dc79a4f
commit 025f183ff2

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)