🎨(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
@@ -38,12 +38,12 @@ class TelephonyService:
|
||||
|
||||
direct_rule = SIPDispatchRule(
|
||||
dispatch_rule_direct=SIPDispatchRuleDirect(
|
||||
room_name=str(room.id), pin=str(room.pin_code)
|
||||
room_name=str(room.pk), pin=str(room.pin_code)
|
||||
)
|
||||
)
|
||||
|
||||
request = CreateSIPDispatchRuleRequest(
|
||||
rule=direct_rule, name=self._rule_name(room.id)
|
||||
rule=direct_rule, name=self._rule_name(room.pk)
|
||||
)
|
||||
|
||||
lkapi = utils.create_livekit_client()
|
||||
|
||||
Reference in New Issue
Block a user