mirror of
https://github.com/Readarr/Readarr
synced 2025-12-23 16:55:12 +01:00
Fixed: Monitored status being reset after refresh when author is edited manually
Resolves #54
This commit is contained in:
parent
bd5695f2dd
commit
faeb78801c
1 changed files with 5 additions and 0 deletions
|
|
@ -225,7 +225,12 @@ public void RemoveAddOptions(Author author)
|
|||
public Author UpdateAuthor(Author author)
|
||||
{
|
||||
_cache.Clear();
|
||||
|
||||
var storedAuthor = GetAuthor(author.Id);
|
||||
|
||||
// Never update AddOptions when updating an author, keep it the same as the existing stored author.
|
||||
author.AddOptions = storedAuthor.AddOptions;
|
||||
|
||||
var updatedAuthor = _authorRepository.Update(author);
|
||||
_eventAggregator.PublishEvent(new AuthorEditedEvent(updatedAuthor, storedAuthor));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue