mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
AuthorController: Update author name in match if changed
This commit is contained in:
parent
122fc34a75
commit
45e1b25ea3
1 changed files with 5 additions and 0 deletions
|
|
@ -368,6 +368,11 @@ class AuthorController {
|
||||||
hasUpdates = true
|
hasUpdates = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (authorData.name && req.author.name !== authorData.name) {
|
||||||
|
req.author.name = authorData.name
|
||||||
|
hasUpdates = true
|
||||||
|
}
|
||||||
|
|
||||||
if (hasUpdates) {
|
if (hasUpdates) {
|
||||||
await req.author.save()
|
await req.author.save()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue