mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Add update/delete playlist forms
This commit is contained in:
parent
5dd65b18b7
commit
52163534db
5 changed files with 182 additions and 4 deletions
|
|
@ -325,7 +325,7 @@ const updatePlaylist = async (args: UpdatePlaylistArgs): Promise<UpdatePlaylistR
|
|||
};
|
||||
|
||||
const data = await api
|
||||
.post(`api/playlist/${query.id}`, {
|
||||
.put(`api/playlist/${query.id}`, {
|
||||
headers: { 'x-nd-authorization': `Bearer ${server?.ndCredential}` },
|
||||
json,
|
||||
prefixUrl: server?.url,
|
||||
|
|
@ -591,6 +591,7 @@ const normalizePlaylist = (
|
|||
});
|
||||
|
||||
return {
|
||||
description: item.comment,
|
||||
duration: item.duration * 1000,
|
||||
id: item.id,
|
||||
imagePlaceholderUrl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue