AuthorController: Update author name in match if changed

This commit is contained in:
mikiher 2026-02-21 07:46:23 +02:00
parent 122fc34a75
commit 45e1b25ea3

View file

@ -368,6 +368,11 @@ class AuthorController {
hasUpdates = true
}
if (authorData.name && req.author.name !== authorData.name) {
req.author.name = authorData.name
hasUpdates = true
}
if (hasUpdates) {
await req.author.save()