mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-23 18:18:18 +00:00
Remove deprecated createChannelsFromStreams method
This commit is contained in:
parent
05641cfb02
commit
8ab9a508d4
1 changed files with 0 additions and 21 deletions
|
|
@ -549,27 +549,6 @@ export default class API {
|
|||
}
|
||||
}
|
||||
|
||||
static async createChannelsFromStreams(values) {
|
||||
try {
|
||||
const response = await request(
|
||||
`${host}/api/channels/channels/from-stream/bulk/`,
|
||||
{
|
||||
method: 'POST',
|
||||
body: values,
|
||||
}
|
||||
);
|
||||
|
||||
if (response.created && response.created.length > 0) {
|
||||
useChannelsStore.getState().addChannels(response.created);
|
||||
}
|
||||
|
||||
return response;
|
||||
} catch (e) {
|
||||
errorNotification('Failed to create channels', e);
|
||||
throw e; // Re-throw to allow proper error handling in calling code
|
||||
}
|
||||
}
|
||||
|
||||
static async createChannelsFromStreamsAsync(streamIds, channelProfileIds = null) {
|
||||
try {
|
||||
const requestBody = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue