MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / reorderChannel

Method reorderChannel

frontend/src/api.js:872–888  ·  view source on GitHub ↗
(channelId, insertAfterId)

Source from the content-addressed store, hash-verified

870 }
871
872 static async reorderChannel(channelId, insertAfterId) {
873 try {
874 const response = await request(
875 `${host}/api/channels/channels/${channelId}/reorder/`,
876 {
877 method: 'POST',
878 body: {
879 insert_after_id: insertAfterId,
880 },
881 }
882 );
883
884 return response;
885 } catch (e) {
886 errorNotification('Failed to reorder channel', e);
887 }
888 }
889
890 static async setChannelEPG(channelId, epgDataId) {
891 try {

Callers 1

handleDragEndFunction · 0.80

Calls 2

requestFunction · 0.85
errorNotificationFunction · 0.85

Tested by

no test coverage detected