mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-08 22:05:23 +02:00
Fix:Changing author name not updating library item metadata files #3060
This commit is contained in:
@@ -23,6 +23,20 @@ class BookAuthor extends Model {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Get number of books for author
|
||||
*
|
||||
* @param {string} authorId
|
||||
* @returns {Promise<number>}
|
||||
*/
|
||||
static getCountForAuthor(authorId) {
|
||||
return this.count({
|
||||
where: {
|
||||
authorId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize model
|
||||
* @param {import('../Database').sequelize} sequelize
|
||||
|
||||
Reference in New Issue
Block a user