mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| faeb78801c | |||
| bd5695f2dd |
+1
-1
@@ -9,7 +9,7 @@ variables:
|
|||||||
testsFolder: './_tests'
|
testsFolder: './_tests'
|
||||||
yarnCacheFolder: $(Pipeline.Workspace)/.yarn
|
yarnCacheFolder: $(Pipeline.Workspace)/.yarn
|
||||||
nugetCacheFolder: $(Pipeline.Workspace)/.nuget/packages
|
nugetCacheFolder: $(Pipeline.Workspace)/.nuget/packages
|
||||||
majorVersion: '0.3.17'
|
majorVersion: '0.3.18'
|
||||||
minorVersion: $[counter('minorVersion', 1)]
|
minorVersion: $[counter('minorVersion', 1)]
|
||||||
readarrVersion: '$(majorVersion).$(minorVersion)'
|
readarrVersion: '$(majorVersion).$(minorVersion)'
|
||||||
buildName: '$(Build.SourceBranchName).$(readarrVersion)'
|
buildName: '$(Build.SourceBranchName).$(readarrVersion)'
|
||||||
|
|||||||
@@ -225,7 +225,12 @@ namespace NzbDrone.Core.Books
|
|||||||
public Author UpdateAuthor(Author author)
|
public Author UpdateAuthor(Author author)
|
||||||
{
|
{
|
||||||
_cache.Clear();
|
_cache.Clear();
|
||||||
|
|
||||||
var storedAuthor = GetAuthor(author.Id);
|
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);
|
var updatedAuthor = _authorRepository.Update(author);
|
||||||
_eventAggregator.PublishEvent(new AuthorEditedEvent(updatedAuthor, storedAuthor));
|
_eventAggregator.PublishEvent(new AuthorEditedEvent(updatedAuthor, storedAuthor));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user