(channel_ids)
| 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 { |
no test coverage detected