MCPcopy Index your code
hub / github.com/Dispatcharr/Dispatcharr / requeryStreams

Method requeryStreams

frontend/src/api.js:1133–1154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1131 }
1132
1133 static async requeryStreams() {
1134 const params =
1135 useStreamsTableStore.getState().lastQueryParams ||
1136 API.lastStreamQueryParams;
1137 if (!params) {
1138 return null;
1139 }
1140
1141 try {
1142 const [response, ids] = await Promise.all([
1143 request(`${host}/api/channels/streams/?${params.toString()}`),
1144 API.getAllStreamIds(params),
1145 ]);
1146
1147 useStreamsTableStore.getState().queryStreams(response, params);
1148 useStreamsTableStore.getState().setAllQueryIds(ids);
1149
1150 return response;
1151 } catch (e) {
1152 errorNotification('Failed to fetch streams', e);
1153 }
1154 }
1155
1156 static async getAllStreamIds(params) {
1157 try {

Callers 9

WebsocketProviderFunction · 0.80
deleteChannelMethod · 0.80
deleteChannelsMethod · 0.80
updateChannelMethod · 0.80
addStreamMethod · 0.80
updateStreamMethod · 0.80
deleteStreamMethod · 0.80
deleteStreamsMethod · 0.80
closeStreamFormFunction · 0.80

Calls 4

requestFunction · 0.85
errorNotificationFunction · 0.85
getAllStreamIdsMethod · 0.80
queryStreamsMethod · 0.80

Tested by

no test coverage detected