mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-03 23:33:58 +00:00
Fixed: Update Album State on AlbumStudio
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user