mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Renames in Frontend
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
|
||||
function getNewAuthor(author, payload) {
|
||||
const {
|
||||
rootFolderPath,
|
||||
monitor,
|
||||
qualityProfileId,
|
||||
metadataProfileId,
|
||||
authorType,
|
||||
tags,
|
||||
searchForMissingBooks = false
|
||||
} = payload;
|
||||
|
||||
const addOptions = {
|
||||
monitor,
|
||||
searchForMissingBooks
|
||||
};
|
||||
|
||||
author.addOptions = addOptions;
|
||||
author.monitored = true;
|
||||
author.qualityProfileId = qualityProfileId;
|
||||
author.metadataProfileId = metadataProfileId;
|
||||
author.rootFolderPath = rootFolderPath;
|
||||
author.authorType = authorType;
|
||||
author.tags = tags;
|
||||
|
||||
return author;
|
||||
}
|
||||
|
||||
export default getNewAuthor;
|
||||
Reference in New Issue
Block a user