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

Method deleteStream

frontend/src/api.js:1229–1240  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1227 }
1228
1229 static async deleteStream(id) {
1230 try {
1231 await request(`${host}/api/channels/streams/${id}/`, {
1232 method: 'DELETE',
1233 });
1234
1235 useStreamsStore.getState().removeStreams([id]);
1236 await API.requeryStreams();
1237 } catch (e) {
1238 errorNotification('Failed to delete stream', e);
1239 }
1240 }
1241
1242 static async deleteStreams(ids) {
1243 try {

Callers 1

executeDeleteStreamFunction · 0.80

Calls 3

requestFunction · 0.85
errorNotificationFunction · 0.85
requeryStreamsMethod · 0.80

Tested by

no test coverage detected