stuff
Docker Build & Publish / build (push) Successful in 35s
Docker Build & Publish / push (push) Failing after 2s
Docker Build & Publish / Prune old image versions (push) Has been skipped

This commit is contained in:
Senko-san
2026-07-23 12:02:13 +03:00
parent 608b85a630
commit 205b51ec73
15 changed files with 704 additions and 9 deletions
+14
View File
@@ -87,6 +87,19 @@ export const playlistsApi = api.injectEndpoints({
{ type: 'Playlist', id: playlistId },
],
}),
reorderPlaylistTracks: build.mutation<
void,
{ playlistId: string; trackIds: string[] }
>({
query: ({ playlistId, trackIds }) => ({
url: `/playlists/${playlistId}/tracks/reorder`,
method: 'PUT',
body: { track_ids: trackIds },
}),
invalidatesTags: (_r, _e, { playlistId }) => [
{ type: 'Playlist', id: playlistId },
],
}),
}),
overrideExisting: false,
});
@@ -100,4 +113,5 @@ export const {
useDeletePlaylistMutation,
useAddTrackToPlaylistMutation,
useRemoveTrackFromPlaylistMutation,
useReorderPlaylistTracksMutation,
} = playlistsApi;