Auto-formatting

This commit is contained in:
advplyr 2025-12-21 14:45:04 -06:00
parent 961d066bdd
commit 076ece6fe7

View file

@ -260,16 +260,16 @@ class Scanner {
// Update filter data // Update filter data
Database.addAuthorToFilterData(libraryItem.libraryId, author.name, author.id) Database.addAuthorToFilterData(libraryItem.libraryId, author.name, author.id)
} }
await Database.bookAuthorModel await Database.bookAuthorModel
.create({ .create({
authorId: author.id, authorId: author.id,
bookId: libraryItem.media.id bookId: libraryItem.media.id
}) })
.then(() => { .then(() => {
Logger.info(`[Scanner] quickMatchBookBuildUpdatePayload: Added author "${author.name}" to "${libraryItem.media.title}"`) Logger.info(`[Scanner] quickMatchBookBuildUpdatePayload: Added author "${author.name}" to "${libraryItem.media.title}"`)
libraryItem.media.authors.push(author) libraryItem.media.authors.push(author)
hasAuthorUpdates = true hasAuthorUpdates = true
}) })
} }
const authorsRemoved = libraryItem.media.authors.filter((a) => !matchData.author.find((ma) => ma.toLowerCase() === a.name.toLowerCase())) const authorsRemoved = libraryItem.media.authors.filter((a) => !matchData.author.find((ma) => ma.toLowerCase() === a.name.toLowerCase()))
if (authorsRemoved.length) { if (authorsRemoved.length) {