This commit is contained in:
jeffvli 2023-02-25 18:31:51 -08:00
parent 7ae3d9d99a
commit ac62c26099

View file

@ -8,10 +8,9 @@ import {
RawRatingResponse,
RatingArgs,
Album,
Song,
AlbumArtist,
Artist,
LibraryItem,
AnyLibraryItems,
} from '/@/renderer/api/types';
import {
useCurrentServer,
@ -31,7 +30,7 @@ export const useUpdateRating = () => {
RawRatingResponse,
HTTPError,
Omit<RatingArgs, 'server'>,
{ previous: { items: Album[] | Song[] | AlbumArtist[] | Artist[] } | undefined }
{ previous: { items: AnyLibraryItems } | undefined }
>({
mutationFn: (args) => {
const server = useAuthStore.getState().actions.getServer(args._serverId) || currentServer;