|
@@ -152,14 +152,6 @@ const actionAddTrack = file =>
|
|
|
getState().promise.playlistTracks.payload[0].tracks.forEach(track => arr.push({_id: track._id}))
|
|
|
console.log('newarr', arr)
|
|
|
|
|
|
- // await dispatch(actionPromise('trackToPlaylist', gql(`
|
|
|
- // mutation {
|
|
|
- // PlaylistUpsert(playlist:{ _id: "${playlistId}", tracks: [{_id: "61e4b26ec2305e2f502acaae"}, {_id: "61e4a4cac2305e2f502aca98"}] }) {
|
|
|
- // _id, name, tracks { _id, originalFileName }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // `)))
|
|
|
-
|
|
|
await dispatch(actionPromise('trackToPlaylist', gql(`
|
|
|
mutation($playlistId: ID, $newTracks: [TrackInput]) {
|
|
|
PlaylistUpsert(playlist:{ _id: $playlistId, tracks: $newTracks}) {
|