Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/livekit/agent_dispatch_service_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def delete_dispatch(dispatch_id, room_name)
self.rpc(
:DeleteDispatch,
request,
headers: auth_header(VideoGrant.new(roomAdmin: true, room: room_name)),
headers: auth_header(video_grant: VideoGrant.new(roomAdmin: true, room: room_name)),
)
end

Expand All @@ -69,10 +69,10 @@ def get_dispatch(dispatch_id, room_name)
res = self.rpc(
:ListDispatch,
request,
headers: auth_header(VideoGrant.new(roomAdmin: true, room: room_name)),
headers: auth_header(video_grant: VideoGrant.new(roomAdmin: true, room: room_name)),
)
if res.agent_dispatches.size > 0
return res.agent_dispatches[0]
if res.data.agent_dispatches.size > 0
return res.data.agent_dispatches[0]
end
nil
end
Expand All @@ -87,9 +87,9 @@ def list_dispatch(room_name)
res = self.rpc(
:ListDispatch,
request,
headers: auth_header(VideoGrant.new(roomAdmin: true, room: room_name)),
headers: auth_header(video_grant: VideoGrant.new(roomAdmin: true, room: room_name)),
)
res.agent_dispatches
res.data.agent_dispatches
end
end
end
Loading