(accountId, values)
| 1892 | } |
| 1893 | |
| 1894 | static async updateM3UProfile(accountId, values) { |
| 1895 | const { id, ...payload } = values; |
| 1896 | |
| 1897 | try { |
| 1898 | await request(`${host}/api/m3u/accounts/${accountId}/profiles/${id}/`, { |
| 1899 | method: 'PUT', |
| 1900 | body: payload, |
| 1901 | }); |
| 1902 | |
| 1903 | const playlist = await API.getPlaylist(accountId); |
| 1904 | usePlaylistsStore.getState().updatePlaylist(playlist); |
| 1905 | } catch (e) { |
| 1906 | errorNotification(`Failed to update profile for account ${accountId}`, e); |
| 1907 | } |
| 1908 | } |
| 1909 | |
| 1910 | static async refreshAccountInfo(profileId) { |
| 1911 | try { |
no test coverage detected