(accountId, id)
| 1879 | } |
| 1880 | |
| 1881 | static async deleteM3UProfile(accountId, id) { |
| 1882 | try { |
| 1883 | await request(`${host}/api/m3u/accounts/${accountId}/profiles/${id}/`, { |
| 1884 | method: 'DELETE', |
| 1885 | }); |
| 1886 | |
| 1887 | const playlist = await API.getPlaylist(accountId); |
| 1888 | usePlaylistsStore.getState().updatePlaylist(playlist); |
| 1889 | } catch (e) { |
| 1890 | errorNotification(`Failed to delete profile for account ${accountId}`, e); |
| 1891 | } |
| 1892 | } |
| 1893 | |
| 1894 | static async updateM3UProfile(accountId, values) { |
| 1895 | const { id, ...payload } = values; |
no test coverage detected