Fixed: Update Album State on AlbumStudio

pull/213/head
Qstick 7 years ago
parent fe56c62a2b
commit 3488ba3d84

@ -8,7 +8,7 @@ import createSetClientSideCollectionSortReducer from './Creators/Reducers/create
import createSetClientSideCollectionFilterReducer from './Creators/Reducers/createSetClientSideCollectionFilterReducer';
import createHandleActions from './Creators/createHandleActions';
import { set } from './baseActions';
import { fetchArtist } from './artistActions';
import { fetchAlbums } from './albumActions';
//
// Variables
@ -108,7 +108,7 @@ export const actionHandlers = handleThunks({
});
promise.done((data) => {
dispatch(fetchArtist());
dispatch(fetchAlbums());
dispatch(set({
section,

@ -195,14 +195,14 @@ namespace NzbDrone.Core.Music
}
}
public List<Album> UpdateAlbums(List<Album> album)
public List<Album> UpdateAlbums(List<Album> albums)
{
_logger.Debug("Updating {0} albums", album.Count);
_logger.Debug("Updating {0} albums", albums.Count);
_albumRepository.UpdateMany(album);
_logger.Debug("{0} albums updated", album.Count);
_albumRepository.UpdateMany(albums);
_logger.Debug("{0} albums updated", albums.Count);
return album;
return albums;
}
public void HandleAsync(ArtistDeletedEvent message)

Loading…
Cancel
Save