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

Method deleteChannels

frontend/src/api.js:642–654  ·  view source on GitHub ↗
(channel_ids)

Source from the content-addressed store, hash-verified

640
641 // @TODO: the bulk delete endpoint is currently broken
642 static async deleteChannels(channel_ids) {
643 try {
644 await request(`${host}/api/channels/channels/bulk-delete/`, {
645 method: 'DELETE',
646 body: { channel_ids },
647 });
648
649 useChannelsStore.getState().removeChannels(channel_ids);
650 await API.requeryStreams();
651 } catch (e) {
652 errorNotification('Failed to delete channels', e);
653 }
654 }
655
656 static async updateChannel(values) {
657 try {

Callers 1

executeDeleteChannelsFunction · 0.80

Calls 3

requestFunction · 0.85
errorNotificationFunction · 0.85
requeryStreamsMethod · 0.80

Tested by

no test coverage detected