Skip to content

Commit

Permalink
feat: remove flowstart
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Oct 14, 2024
1 parent 3e2f85e commit c483b40
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions chats/apps/api/v1/rooms/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ def get_can_edit_custom_fields(self, room: Room):
class ListRoomSerializer(serializers.ModelSerializer):
user = serializers.SerializerMethodField()
contact = serializers.SerializerMethodField()
queue = (
serializers.SerializerMethodField()
) # QueueSimpleSerializer(many=False, read_only=True)
tags = serializers.SerializerMethodField()
queue = serializers.SerializerMethodField()
flowstart_data = serializers.SerializerMethodField()
unread_msgs = serializers.IntegerField(required=False, default=0)
last_message = serializers.CharField(read_only=True, source="last_message_text")
Expand All @@ -111,8 +108,6 @@ class Meta:
"uuid",
"user",
"queue",
"tags",
"flowstart_data",
"contact",
"unread_msgs",
"last_message",
Expand All @@ -125,8 +120,6 @@ class Meta:
"transfer_history",
"protocol",
"service_chat",
"created_on",
"ended_at",
]

def get_user(self, room: Room):
Expand All @@ -150,12 +143,6 @@ def get_queue(self, room: Room):
except AttributeError:
return None

def get_tags(self, room: Room):
return []

def get_flowstart_data(self, room: Room):
return {}

def get_contact(self, room: Room):
return {
"uuid": room.contact.uuid,
Expand Down

0 comments on commit c483b40

Please sign in to comment.