(ids)
| 1240 | } |
| 1241 | |
| 1242 | static async deleteStreams(ids) { |
| 1243 | try { |
| 1244 | await request(`${host}/api/channels/streams/bulk-delete/`, { |
| 1245 | method: 'DELETE', |
| 1246 | body: { stream_ids: ids }, |
| 1247 | }); |
| 1248 | |
| 1249 | useStreamsStore.getState().removeStreams(ids); |
| 1250 | await API.requeryStreams(); |
| 1251 | } catch (e) { |
| 1252 | errorNotification('Failed to delete streams', e); |
| 1253 | } |
| 1254 | } |
| 1255 | |
| 1256 | static async getUserAgents() { |
| 1257 | try { |
no test coverage detected