mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-09 18:29:59 +00:00
🎨(backend) use object primary key instead of id attribute
Replace id attribute references with object primary key for better code consistency and Django model conventions. requested by @qbey
This commit is contained in:
committed by
aleb_the_flash
parent
9b6b32c3d5
commit
888fbbcd5f
@@ -584,7 +584,7 @@ class RoomViewSet(
|
||||
|
||||
try:
|
||||
ParticipantsManagement().mute(
|
||||
room_name=str(room.id),
|
||||
room_name=str(room.pk),
|
||||
identity=str(serializer.validated_data["participant_identity"]),
|
||||
track_sid=serializer.validated_data["track_sid"],
|
||||
)
|
||||
@@ -617,7 +617,7 @@ class RoomViewSet(
|
||||
|
||||
try:
|
||||
ParticipantsManagement().update(
|
||||
room_name=str(room.id),
|
||||
room_name=str(room.pk),
|
||||
identity=str(serializer.validated_data["participant_identity"]),
|
||||
metadata=serializer.validated_data.get("metadata"),
|
||||
attributes=serializer.validated_data.get("attributes"),
|
||||
@@ -653,7 +653,7 @@ class RoomViewSet(
|
||||
|
||||
try:
|
||||
ParticipantsManagement().remove(
|
||||
room_name=str(room.id),
|
||||
room_name=str(room.pk),
|
||||
identity=str(serializer.validated_data["participant_identity"]),
|
||||
)
|
||||
except ParticipantsManagementException:
|
||||
|
||||
Reference in New Issue
Block a user