Skip to content

Commit

Permalink
feat: add link type to RoomInternalListSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
kallilsouza committed Dec 24, 2024
1 parent 3bfadaf commit 9755beb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chats/apps/api/v1/internal/rooms/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Meta:
"queue",
"created_on",
"tags",
"link",
]

def get_agent(self, obj):
Expand All @@ -39,5 +40,6 @@ def get_link(self, obj: Room) -> dict:
f"chats:dashboard/view-mode/{obj.user.email}/?room_uuid={obj.uuid}"
if obj.user
else None
)
),
"type": "internal",
}

0 comments on commit 9755beb

Please sign in to comment.