mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Fixed: Update Album State on AlbumStudio
This commit is contained in:
parent
fe56c62a2b
commit
3488ba3d84
2 changed files with 7 additions and 7 deletions
|
@ -8,7 +8,7 @@ import createSetClientSideCollectionSortReducer from './Creators/Reducers/create
|
||||||
import createSetClientSideCollectionFilterReducer from './Creators/Reducers/createSetClientSideCollectionFilterReducer';
|
import createSetClientSideCollectionFilterReducer from './Creators/Reducers/createSetClientSideCollectionFilterReducer';
|
||||||
import createHandleActions from './Creators/createHandleActions';
|
import createHandleActions from './Creators/createHandleActions';
|
||||||
import { set } from './baseActions';
|
import { set } from './baseActions';
|
||||||
import { fetchArtist } from './artistActions';
|
import { fetchAlbums } from './albumActions';
|
||||||
|
|
||||||
//
|
//
|
||||||
// Variables
|
// Variables
|
||||||
|
@ -108,7 +108,7 @@ export const actionHandlers = handleThunks({
|
||||||
});
|
});
|
||||||
|
|
||||||
promise.done((data) => {
|
promise.done((data) => {
|
||||||
dispatch(fetchArtist());
|
dispatch(fetchAlbums());
|
||||||
|
|
||||||
dispatch(set({
|
dispatch(set({
|
||||||
section,
|
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);
|
_albumRepository.UpdateMany(albums);
|
||||||
_logger.Debug("{0} albums updated", album.Count);
|
_logger.Debug("{0} albums updated", albums.Count);
|
||||||
|
|
||||||
return album;
|
return albums;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void HandleAsync(ArtistDeletedEvent message)
|
public void HandleAsync(ArtistDeletedEvent message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue